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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1747
RA = 342.246, Dec = 21.1159
tmin = 692150401, tmax = 692409601
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='816070', job_status='RUN', time_executed='2022-12-11 01:50:44.476394', time_epoch_executed='1670752244.48' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816070

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816070/ft1_4FGL_J2248.9+2106_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816070/ft1_4FGL_J2248.9+2106_daily_bin1747.fits outfile=/scratch/kocevski/816070/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1747.fits ra=342.246 dec=21.1159 rad=12.0 tmin=692150401.0 tmax=692409601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.00
user 3.76
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.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/816070/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/816070/ft1_filtered_4FGL_J2248.9+2106_daily_bin1747.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 944

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816070/ft1_filtered_4FGL_J2248.9+2106_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/816070/ltcube_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.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/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits
.....................!
real 11.83
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816070/ft1_filtered_4FGL_J2248.9+2106_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/816070/ltcube_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.fits outfile=/scratch/kocevski/816070/expmap_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.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/816070/ltcube_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.fits
.....................!
real 193.20
user 187.29
sys 5.59

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/816070/ft1_filtered_4FGL_J2248.9+2106_daily_bin1747.fits scfile=/scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits outfile=/scratch/kocevski/816070/cmap_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816070/ft1_filtered_4FGL_J2248.9+2106_daily_bin1747.fits scfile=/scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits outfile=/scratch/kocevski/816070/cmap_HighResolution_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816070/ft1_filtered_4FGL_J2248.9+2106_daily_bin1747.fits', '/scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits', expMap='/scratch/kocevski/816070/expmap_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.fits', expCube='/scratch/kocevski/816070/ltcube_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816070/Model_4FGL_J2248.9+2106_daily_bin1747.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/816070/ft1_filtered_4FGL_J2248.9+2106_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/816070/ft2_4FGL_J2248.9+2106_daily_bin1747.fits
Exposure map: /scratch/kocevski/816070/expmap_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.fits
Exposure cube: /scratch/kocevski/816070/ltcube_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816070/Model_4FGL_J2248.9+2106_daily_bin1747.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) = 9480.01126098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11744E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .60507E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12204E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .41901E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10206E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .89387E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19272E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13678E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.9279       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20460E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.5106       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6375       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23121E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.184       1.0000          .0000       .10000E+07
    16 'Prefactor '    129.97       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.2345       1.0000          .0000       .10000E+07
    18 'Prefactor '    9.7406       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4364       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81982       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=   9480.006     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1624 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19373E-07    11.451       -.31932E-07** at limit **
   2  norm           .0000        .40284        .39097E-07** at limit **
   3  Prefactor     .20761E-07    16.774       -.82322E-07** at limit **
   4  norm           .0000        1.9285        .16982E-07** at limit **
   5  Prefactor     .94424E-07    6.3964        .64719E-07** at limit **
   6  Prefactor     .85489E-03    31.915       -.20769E-06** at limit **
   7  Prefactor     2.2419        .31781        .55621E-07    .29993E-02
   8  Prefactor     .10000E-03    6.6615        .13743E-05** at limit **
   9  norm          .16653E-09    6.6703       -.18674E-07** at limit **
  10  norm          3.9279        1.8064        .15849E-07    .38212E-02
  11  Prefactor     .93481E-07    6.6164        .16053E-06** at limit **
  12  Prefactor     7.4930        7.2492       -.68497E-07   -.29888E-02
  13  Prefactor     1.6374        .22268       -.39603E-07   -.35180E-02
  14  Prefactor     .61062E-09    5.6809       -.40974E-07** at limit **
  15  Prefactor     13.407        7.0089        .41557E-07   -.10186    
  16  Prefactor     128.64        44.956       -.57439E-07   -.47393E-01
  17  Prefactor     4.2168        6.9978        .10801E-06    .56955E-02
  18  Prefactor     9.7908        2.6689        .20064E-07   -.31872E-01
  19  Normalizat    1.4375        .26035       -.23477E-06   -.47045E-04
  20  Prefactor     .81978        .13526       -.14016E-06   -.92372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93734e-08
  norm       = 0
  Prefactor  = 2.07612e-08
  norm       = 0
  Prefactor  = 9.44245e-08
  Prefactor  = 0.000854888
  Prefactor  = 2.24193
  Prefactor  = 0.0001
  norm       = 1.66533e-10
  norm       = 3.92794
  Prefactor  = 9.34808e-08
  Prefactor  = 7.49299
  Prefactor  = 1.63744
  Prefactor  = 6.10623e-10
  Prefactor  = 13.4072
  Prefactor  = 128.64
  Prefactor  = 4.21684
  Prefactor  = 9.79076
  Normalizat = 1.43748
  Prefactor  = 0.819777
 **********
 **   18 **HESSE 
 **********

 FCN=   9480.006     FROM HESSE     STATUS=OK           343 CALLS     1967 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19373E-07    11.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .39696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20761E-07    16.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.9283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .94424E-07    6.5826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .85489E-03    4.3990        .11099E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2419        .31764        .45047E-02   -1.5408    
   8  Prefactor     .10000E-03    6.6392        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16653E-09    .68964        .26101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9279        1.8086        .50878E-03   -1.5668    
  11  Prefactor     .93481E-07    6.8045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4930        7.2495        .36571E-03   -1.5653    
  13  Prefactor     1.6374        .22262        .36495E-02   -1.5452    
  14  Prefactor     .61062E-09    5.6507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.407        22.137        .27561E-03   -1.5635    
  16  Prefactor     128.64        45.360        .87723E-04   -1.5481    
  17  Prefactor     4.2168        7.9570        .48943E-03   -1.5667    
  18  Prefactor     9.7908        20.579        .32084E-03   -1.5645    
  19  Normalizat    1.4375        .22277        .74514E-01   -.79551    
  20  Prefactor     .81978        .11423        .43975E-01   -.99003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52634e-07
Minuit parameter uncertainties:
  1  0.000946258
  2  6.56281e-06
  3  0.00117992
  4  7.38878e-06
  5  0.00157682
  6  0.122648
  7  0.31764
  8  9.1609e-05
  9  2.27398e-05
  10  1.80859
  11  0.00159513
  12  7.24948
  13  0.222617
  14  0.000117872
  15  22.1369
  16  45.3602
  17  7.95698
  18  20.5793
  19  0.222922
  20  0.114262
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  7.493e+00  7.249e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.198e-01  1.143e-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.437e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.62e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 9.94e-06 +/- 9.62e-06

TS (Fixed Index): 3.06
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 9.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816070/likelihoodResults_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.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) = 9479.64946819
delta logL = 0.356057764749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9479.64917284
delta logL = 0.35635311548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.719       1.0000          .0000       .10000E+07
     2 'Index     '    1.7682       1.0000          .0000       10.000    
     3 'Normalizat'    1.4501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81524       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.

 FCN=   9479.649     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      258 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.677        395.87        .29238E-03   -.15219E-03
   2  Index         1.7647        5.6032        .27321        .17650E-04
   3  Normalizat    1.4502        .11305        .74247E-01    .23118E-04
   4  Prefactor     .81529        .47225E-01    .43915E-01    .37200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6772
  Index      = 1.76473
  Normalizat = 1.45019
  Prefactor  = 0.815291
 **********
 **   18 **HESSE 
 **********

 FCN=   9479.649     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.677        11.165        .11695E-04   -1.5640    
   2  Index         1.7647        .57539        .10347E-01   -.70371    
   3  Normalizat    1.4502        .24628        .32855E-03   -.79188    
   4  Prefactor     .81529        .13384        .22879E-03   -.99167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04717e-13
Minuit parameter uncertainties:
  1  11.1647
  2  0.577595
  3  0.246487
  4  0.133898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816070': 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) = 9479.64914424
delta logL = 0.356381714599

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.168e+01  1.116e+01  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  1.765e+00  5.776e-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:  8.153e-01  1.339e-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.450e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.76 +/- 0.58
Photon Flux (Free Index): 1.67e-08 +/- 1.94e-08
Energy Flux (Free Index): 2.22e-05 +/- 3.22e-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/816070/cmap_HighResolution_692150401_692409601_4FGL_J2248.9+2106_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', comment='SUCCESS', photon_flux='2.62e-08', energy_flux2='2.22e-05', photon_flux_error='2.53e-08', dlogl='3.56e-01', energy_flux='9.94e-06', photon_flux2='1.67e-08', job_status='DONE', time_completed='2022-12-11 02:03:08.774474', photon_index_error2='0.58', photon_index2='1.76', ts='3.06', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.42e-08', energy_flux_error2='3.22e-05', EG='1.44', time_epoch_completed='1670752988.77', return_code='0', job_id='816070', GAL2='0.82', EG2='1.45', return_code2='0', energy_flux_error='9.62e-06', photon_flux_error2='1.94e-08', ts2='3.77', photon_index='2.30' WHERE bin_id='1747' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 02:03:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 816070: <4FGL_J2248.9+2106_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1747> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Dec 11 01:50:14 2022
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:50:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:50:16 2022
Terminated at Sun Dec 11 02:03:09 2022
Results reported at Sun Dec 11 02:03:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1747 342.246 21.1159 692150401 692409601 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 :                                   746.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

