aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 = 17083
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.9+4840_weekly_bin5
RA = 192.244, Dec = 48.67
tmin = 242006401, tmax = 242611201
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='468261', job_status='RUN', time_executed='2021-07-19 13:51:57.628313', time_epoch_executed='1626727917.63' WHERE source_name='4FGL J1248.9+4840' and cadence='weekly' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468261

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468261/ft1_4FGL_J1248.9+4840_weekly_bin5.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468261/ft2_4FGL_J1248.9+4840_weekly_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468261/ft1_4FGL_J1248.9+4840_weekly_bin5.fits outfile=/scratch/kocevski/468261/ft1_filteredMKT_4FGL_J1248.9+4840_weekly_bin5.fits ra=192.244 dec=48.67 rad=12.0 tmin=242006401.0 tmax=242611201.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 2.24
user 2.01
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468261/ft2_4FGL_J1248.9+4840_weekly_bin5.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/468261/ft1_filteredMKT_4FGL_J1248.9+4840_weekly_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/468261/ft1_filtered_4FGL_J1248.9+4840_weekly_bin5.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.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468261/ft1_filtered_4FGL_J1248.9+4840_weekly_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/468261/ft2_4FGL_J1248.9+4840_weekly_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/468261/ltcube_242006401_242611201_4FGL_J1248.9+4840_weekly_bin5.fits outfile=/scratch/kocevski/468261/expmap_242006401_242611201_4FGL_J1248.9+4840_weekly_bin5.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/468261/ltcube_242006401_242611201_4FGL_J1248.9+4840_weekly_bin5.fits
.....................!
real 156.92
user 152.31
sys 4.14

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/468261/ft1_filtered_4FGL_J1248.9+4840_weekly_bin5.fits scfile=/scratch/kocevski/468261/ft2_4FGL_J1248.9+4840_weekly_bin5.fits outfile=/scratch/kocevski/468261/cmap_242006401_242611201_4FGL_J1248.9+4840_weekly_bin5.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.50
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468261/ft1_filtered_4FGL_J1248.9+4840_weekly_bin5.fits scfile=/scratch/kocevski/468261/ft2_4FGL_J1248.9+4840_weekly_bin5.fits outfile=/scratch/kocevski/468261/cmap_HighResolution_242006401_242611201_4FGL_J1248.9+4840_weekly_bin5.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.51
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26154       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22100E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0307       1.0000         .10000E-03   10000.    
     4 'norm      '    6.0567       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3708       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0656       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3898       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4286       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1813       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4452       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.882       1.0000         .10000E-03   10000.    
    20 'norm      '    12.264       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1695       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3384       1.0000         .10000E-03   10000.    
    23 'norm      '    .10514E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3077       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82738       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=   18201.30     FROM MIGRAD    STATUS=CONVERGED   1062 CALLS     3037 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26228        2.4836        .19378E-02   -.18547E-02
   2  Prefactor     .10005E-03    5.8983        .86716E-01** at limit **
   3  norm          3.0305        1.3642        .10121E-03   -.39988E-04
   4  norm          6.0603        5.6466        .16314E-03    .41839E-03
   5  Prefactor     17.991        16.861        .94398E-04    .27507E-03
   6  Prefactor     3.3705        2.7314        .19149E-03   -.35621E-05
   7  norm          4.3750        1.4157        .87370E-04    .16760E-03
   8  Prefactor     .10000E-03    3.6263        .18142E-02** at limit **
   9  Prefactor     7.0659        8.1037        .15092E-03    .31940E-04
  10  norm          2.3898        1.0891        .92339E-04    .37921E-04
  11  Prefactor     2.9235        3.5890        .23751E-03    .28145E-04
  12  Prefactor     .10000E-03    13.245        .18142E-02** at limit **
  13  Prefactor     .10000E-03    1.8837        .18027E-02** at limit **
  14  Prefactor     .10000E-03    11.961        .18142E-02** at limit **
  15  norm          4.4288        5.3259        .19136E-03   -.13165E-03
  16  norm          1.1811        1.2850        .15516E-03    .13511E-03
  17  Prefactor     9.4281        15.215        .65261E-03   -.11358E-03
  18  Prefactor     5.4470        9.1458        .17220E-03   -.58891E-04
  19  Prefactor     16.877        17.965        .97479E-04    .16934E-03
  20  norm          12.265        3.4815        .11439E-03   -.10535E-03
  21  Prefactor     1.1168        18.373        .15681        .38433E-03
  22  norm          1.3383        .76925        .87358E-04   -.49140E-03
  23  norm          .10000E-03    20.755        .18142E-02** at limit **
  24  Normalizat    1.3078        .12391        .21944E-03    .64598E-03
  25  Prefactor     .82735        .14195        .32293E-03    .47639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.262283
  Prefactor  = 0.000100052
  norm       = 3.03054
  norm       = 6.0603
  Prefactor  = 17.9911
  Prefactor  = 3.3705
  norm       = 4.37498
  Prefactor  = 0.0001
  Prefactor  = 7.06595
  norm       = 2.3898
  Prefactor  = 2.92349
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.42879
  norm       = 1.18108
  Prefactor  = 9.42812
  Prefactor  = 5.44702
  Prefactor  = 16.8774
  norm       = 12.2648
  Prefactor  = 1.11677
  norm       = 1.33834
  norm       = 0.0001
  Normalizat = 1.30779
  Prefactor  = 0.827355
 **********
 **   18 **HESSE 
 **********

 FCN=   18201.30     FROM HESSE     STATUS=OK           423 CALLS     3460 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26228        2.4345        .77513E-04   -1.5606    
   2  Prefactor     .10005E-03    5.3322        .92846E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0305        1.3641        .40485E-05   -1.5360    
   4  norm          6.0603        5.6443        .65258E-05   -1.5216    
   5  Prefactor     17.991        16.853        .37759E-05   -1.4859    
   6  Prefactor     3.3705        2.7312        .76597E-05   -1.5341    
   7  norm          4.3750        1.4156        .34948E-05   -1.5290    
   8  Prefactor     .10000E-03    3.6268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0659        8.1035        .60366E-05   -1.5176    
  10  norm          2.3898        1.0891        .36936E-05   -1.5399    
  11  Prefactor     2.9235        3.5887        .95005E-05   -1.5366    
  12  Prefactor     .10000E-03    13.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8841        .36055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4288        5.3258        .76543E-05   -1.5287    
  16  norm          1.1811        1.2849        .62063E-05   -1.5491    
  17  Prefactor     9.4281        15.208        .26104E-04   -1.5094    
  18  Prefactor     5.4470        9.1444        .68879E-05   -1.5241    
  19  Prefactor     16.877        17.962        .38992E-05   -1.4886    
  20  norm          12.265        3.4809        .45755E-05   -1.5007    
  21  Prefactor     1.1168        18.441        .15641       -1.5497    
  22  norm          1.3383        .76921        .34943E-05   -1.5477    
  23  norm          .10000E-03    20.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3078        .12400        .43888E-04   -.83334    
  25  Prefactor     .82735        .14206        .12917E-04   -.98728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97492e-09
Minuit parameter uncertainties:
  1  1.59793
  2  0.0010517
  3  1.36416
  4  5.64483
  5  16.857
  6  2.73126
  7  1.41566
  8  1.24699e-05
  9  8.10477
  10  1.08913
  11  3.589
  12  0.000264374
  13  8.22705e-06
  14  9.83448e-05
  15  5.32636
  16  1.28495
  17  15.2138
  18  9.14672
  19  17.9673
  20  3.48093
  21  9.079
  22  0.769213
  23  0.000183376
  24  0.124033
  25  0.142124
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.247e-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:  8.274e-01  1.421e-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.308e+00  1.240e-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: 2.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468261/likelihoodResults_242006401_242611201_4FGL_J1248.9+4840_weekly_bin5.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) = 18201.299238
delta logL = -0.00131416514705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18201.2979237
delta logL = 1.3790486264e-07

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.4344       1.0000          .0000       10.000    
     3 'Normalizat'    1.3078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82735       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=   18201.30     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      247 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    51.641        .18142E-02** at limit **
   2  Index         2.3666        6.1773        .50000        .28248E-04
   3  Normalizat    1.3078        .93416E-02    .21944E-03   -.15310E-03
   4  Prefactor     .82735        .11259E-01    .32293E-03    .16476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101329
  Index      = 2.3666
  Normalizat = 1.30779
  Prefactor  = 0.827355
 **********
 **   18 **HESSE 
 **********

 FCN=   18201.30     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10133E-03    214.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3666        7.1122        .50000       -.55469    
   3  Normalizat    1.3078        .20103E-01    .43888E-04   -.83334    
   4  Prefactor     .82735        .24229E-01    .12917E-04   -.98728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.5674e-08
Minuit parameter uncertainties:
  1  0.0338743
  2  663.905
  3  0.0201033
  4  0.0242297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468261': 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) = 18201.2979234
delta logL = 4.72417013953e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.274e-01  2.423e-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.308e+00  2.010e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/468261/cmap_HighResolution_242006401_242611201_4FGL_J1248.9+4840_weekly_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-03', job_status='DONE', photon_flux_upper_limit='2.41e-08', time_completed='2021-07-19 14:26:31.993782', job_id='468261', GAL2='0.83', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1626729991.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='5' AND source_name='4FGL J1248.9+4840' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 19 14:26:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 468261: <4FGL_J1248.9+4840_weekly_bin5> in cluster <slac> Done

Job <4FGL_J1248.9+4840_weekly_bin5> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul 19 13:50:50 2021
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 13:51:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 13:51:41 2021
Terminated at Mon Jul 19 14:26:32 2021
Results reported at Mon Jul 19 14:26:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_weekly_bin5 192.244 48.67 242006401 242611201 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 :                                   1458.13 sec.
    Max Memory :                                 1266 MB
    Average Memory :                             299.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3409 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2091 sec.
    Turnaround time :                            2142 sec.

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

