aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 66 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17375
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2248.9+2106_weekly_bin740
RA = 342.246, Dec = 21.1159
tmin = 686534401, tmax = 687139201
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='837036', job_status='RUN', time_executed='2022-10-11 01:01:41.224256', time_epoch_executed='1665475301.22' WHERE source_name='4FGL J2248.9+2106' and cadence='weekly' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837036

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837036/ft1_4FGL_J2248.9+2106_weekly_bin740.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837036/ft1_4FGL_J2248.9+2106_weekly_bin740.fits outfile=/scratch/kocevski/837036/ft1_filteredMKT_4FGL_J2248.9+2106_weekly_bin740.fits ra=342.246 dec=21.1159 rad=12.0 tmin=686534401.0 tmax=687139201.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 7.23
user 6.94
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.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/837036/ft1_filteredMKT_4FGL_J2248.9+2106_weekly_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.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.57
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 1109

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/837036/ltcube_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.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/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits
.....................!
real 29.22
user 28.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/837036/ltcube_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.fits outfile=/scratch/kocevski/837036/expmap_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.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/837036/ltcube_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.fits
.....................!
real 190.22
user 184.91
sys 4.96

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2248.9+2106 @ 342.246 21.1159

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits scfile=/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits outfile=/scratch/kocevski/837036/cmap_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.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=342.246 yref=21.1159 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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits scfile=/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits outfile=/scratch/kocevski/837036/cmap_HighResolution_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.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=342.246 yref=21.1159 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837036/Model_4FGL_J2248.9+2106_weekly_bin740.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/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits.....................!
real 125.97
user 124.59
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits', '/scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits', expMap='/scratch/kocevski/837036/expmap_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.fits', expCube='/scratch/kocevski/837036/ltcube_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/837036/Model_4FGL_J2248.9+2106_weekly_bin740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.9+2106'

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.757e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/837036/ft1_filtered_4FGL_J2248.9+2106_weekly_bin740.fits
Spacecraft file(s): /scratch/kocevski/837036/ft2_4FGL_J2248.9+2106_weekly_bin740.fits
Exposure map: /scratch/kocevski/837036/expmap_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.fits
Exposure cube: /scratch/kocevski/837036/ltcube_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/837036/Model_4FGL_J2248.9+2106_weekly_bin740.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11675.8000336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.540       1.0000          .0000       .10000E+07
     2 'norm      '    .22848E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.412       1.0000          .0000       .10000E+07
     4 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     5 'Prefactor '    .77018E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .35160E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .41507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .43116       1.0000          .0000       .10000E+07
    10 'norm      '    .55000E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    66.365       1.0000          .0000       .10000E+07
    12 'Prefactor '    40.203       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.6356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .93259E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    49.972       1.0000          .0000       .10000E+07
    16 'Prefactor '    20.962       1.0000          .0000       .10000E+07
    17 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
    18 'Prefactor '    .15782E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0036       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11671.38     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      981 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.580        2.9571        .18881E-07   -.39622E-01
   2  norm           .0000        1.1806        .82798E-10** at limit **
   3  Prefactor     31.414        4.6404        .33975E-07    .81708E-01
   4  norm           .0000        1.0583        .17196E-06** at limit **
   5  Prefactor     .92704E-08    9.1099       -.42333E-06** at limit **
   6  Prefactor      .0000        4.5125        .12530E-06** at limit **
   7  Prefactor     .41509        .20515        .22399E-06    .76554E-03
   8  Prefactor     .10000E-03    14.372        .31531E-05** at limit **
   9  norm          .43101        .92359        .11045E-06    .19372E-02
  10  norm           .0000        1.3228        .15341E-06** at limit **
  11  Prefactor     66.331        6.3752       -.45568E-07    .10092    
  12  Prefactor     40.253        15.519       -.11310E-06   -.20655    
  13  Prefactor     5.6356        .41424        .89927E-07    .96407E-03
  14  Prefactor     .55511E-10    2.2352        .30290E-06** at limit **
  15  Prefactor     50.026        1.0136        .12305E-08   -.36228E-01
  16  Prefactor     20.887        16.392       -.21282E-06    .13495    
  17  Prefactor     .28311E-08    7.9816       -.48570E-06** at limit **
  18  Prefactor     .71498E-07    30.737       -.12968E-05** at limit **
  19  Normalizat    1.0035        .27966        .51928E-05    .44247E-04
  20  Prefactor     1.1444        .14505       -.42672E-05    .39435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.5804
  norm       = 0
  Prefactor  = 31.4141
  norm       = 0
  Prefactor  = 9.27036e-09
  Prefactor  = 0
  Prefactor  = 0.415085
  Prefactor  = 0.0001
  norm       = 0.431006
  norm       = 0
  Prefactor  = 66.3307
  Prefactor  = 40.2531
  Prefactor  = 5.63564
  Prefactor  = 5.55112e-11
  Prefactor  = 50.0258
  Prefactor  = 20.8865
  Prefactor  = 2.83107e-09
  Prefactor  = 7.14984e-08
  Normalizat = 1.00345
  Prefactor  = 1.14442
 **********
 **   18 **HESSE 
 **********

 FCN=   11671.38     FROM HESSE     STATUS=OK           339 CALLS     1320 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.580        56.021        .11008E-03   -1.5526    
   2  norm           .0000        .35838        .22063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.414        17.789        .17845E-03   -1.5596    
   4  norm           .0000        1.0623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .92704E-08    9.0938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.5329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .41509        .21146        .74723E-02   -1.5579    
   8  Prefactor     .10000E-03    13.877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .43101        .94257        .85961E-03   -1.5695    
  10  norm           .0000        1.3072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     66.331        45.782        .12276E-03   -1.5545    
  12  Prefactor     40.253        17.956        .15773E-03   -1.5581    
  13  Prefactor     5.6356        .42434        .40465E-02   -1.5233    
  14  Prefactor     .55511E-10    2.2377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.026        35.215        .14147E-03   -1.5567    
  16  Prefactor     20.887        42.812        .21848E-03   -1.5617    
  17  Prefactor     .28311E-08    7.9763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71498E-07    30.835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0035        .24770        .10536       -.92915    
  20  Prefactor     1.1444        .12445        .52105E-01   -.88059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51644e-06
Minuit parameter uncertainties:
  1  56.0212
  2  9.85387e-07
  3  17.789
  4  9.2645e-06
  5  0.000580102
  6  1.06029e-05
  7  0.211464
  8  8.36081e-05
  9  0.942569
  10  9.93626e-06
  11  45.7822
  12  17.9559
  13  0.424341
  14  2.05278e-05
  15  35.2153
  16  42.8129
  17  0.000301481
  18  0.00296919
  19  0.247985
  20  0.124483
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.025e+01  1.796e+01  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.144e+00  1.245e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.003e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.50
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 6.27e-08
Energy Flux (Fixed Index): 5.34e-05 +/- 2.38e-05

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) = 11671.1120567
delta logL = 0.266797492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11671.0848609
delta logL = 0.293993320098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.694       1.0000          .0000       .10000E+07
     2 'Index     '    2.5849       1.0000          .0000       10.000    
     3 'Normalizat'    .96747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+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=   11671.08     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      278 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.696        22.423        .74686E-05    .22468E-02
   2  Index         2.5850        .43381        .44885E-02    .10120E-03
   3  Normalizat    .96743        .28141        .47425E-03    .24001E-03
   4  Prefactor     1.1571        .14640        .22919E-03    .62350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6961
  Index      = 2.58499
  Normalizat = 0.967428
  Prefactor  = 1.15713
 **********
 **   18 **HESSE 
 **********

 FCN=   11671.08     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.696        20.275        .29874E-06   -1.5601    
   2  Index         2.5850        .39197        .17954E-03   -.50408    
   3  Normalizat    .96743        .28093        .18970E-04   -.94130    
   4  Prefactor     1.1571        .14620        .45838E-04   -.87661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97447e-10
Minuit parameter uncertainties:
  1  20.2751
  2  0.392495
  3  0.28136
  4  0.146254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837036': 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): 0
logL (Free Index) = 11671.0848606
delta logL = 0.293993590629

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.870e+01  2.028e+01  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.585e+00  3.925e-01  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.157e+00  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  9.674e-01  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.15
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.58 +/- 0.39
Photon Flux (Free Index): 1.76e-07 +/- 8.43e-08
Energy Flux (Free Index): 4.69e-05 +/- 2.09e-05

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/837036/cmap_HighResolution_686534401_687139201_4FGL_J2248.9+2106_weekly_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='4.69e-05', photon_flux_error='6.27e-08', dlogl='2.94e-01', energy_flux='5.34e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2022-10-11 01:13:08.538201', photon_index_error2='0.39', photon_index2='2.58', ts='9.50', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='1.00', time_epoch_completed='1665475988.54', return_code='0', job_id='837036', GAL2='1.16', EG2='0.97', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='8.43e-08', ts2='10.15', photon_index='2.30' WHERE bin_id='740' AND source_name='4FGL J2248.9+2106' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 11 01:13:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 837036: <4FGL_J2248.9+2106_weekly_bin740> in cluster <slac> Done

Job <4FGL_J2248.9+2106_weekly_bin740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 11 01:00:23 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 11 01:00:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 11 01:00:24 2022
Terminated at Tue Oct 11 01:13:09 2022
Results reported at Tue Oct 11 01:13:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_weekly_bin740 342.246 21.1159 686534401 687139201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.9+2106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   687.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            766 sec.

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

