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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1767
RA = 342.246, Dec = 21.1159
tmin = 697334401, tmax = 697593601
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='90174', job_status='RUN', time_executed='2023-02-09 01:58:46.368357', time_epoch_executed='1675936726.37' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90174/ft1_4FGL_J2248.9+2106_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90174/ft2_4FGL_J2248.9+2106_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90174/ft1_4FGL_J2248.9+2106_daily_bin1767.fits outfile=/scratch/kocevski/90174/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1767.fits ra=342.246 dec=21.1159 rad=12.0 tmin=697334401.0 tmax=697593601.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.63
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90174/ft2_4FGL_J2248.9+2106_daily_bin1767.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/90174/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/90174/ft1_filtered_4FGL_J2248.9+2106_daily_bin1767.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 907

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90174/ft1_filtered_4FGL_J2248.9+2106_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/90174/ft2_4FGL_J2248.9+2106_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/90174/ltcube_697334401_697593601_4FGL_J2248.9+2106_daily_bin1767.fits outfile=/scratch/kocevski/90174/expmap_697334401_697593601_4FGL_J2248.9+2106_daily_bin1767.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/90174/ltcube_697334401_697593601_4FGL_J2248.9+2106_daily_bin1767.fits
.....................!
real 192.58
user 187.13
sys 4.35

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/90174/ft1_filtered_4FGL_J2248.9+2106_daily_bin1767.fits scfile=/scratch/kocevski/90174/ft2_4FGL_J2248.9+2106_daily_bin1767.fits outfile=/scratch/kocevski/90174/cmap_697334401_697593601_4FGL_J2248.9+2106_daily_bin1767.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90174/ft1_filtered_4FGL_J2248.9+2106_daily_bin1767.fits scfile=/scratch/kocevski/90174/ft2_4FGL_J2248.9+2106_daily_bin1767.fits outfile=/scratch/kocevski/90174/cmap_HighResolution_697334401_697593601_4FGL_J2248.9+2106_daily_bin1767.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16205E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .84013       1.0000          .0000       .10000E+07
     3 'Prefactor '    35.838       1.0000          .0000       .10000E+07
     4 'norm      '    .85376E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.9908       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11082E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.2576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2649       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4607       1.0000          .0000       .10000E+07
    10 'norm      '    1.1931       1.0000          .0000       .10000E+07
    11 'Prefactor '    .35838E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6458       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10845E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .95584E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    34.497       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8898       1.0000          .0000       .10000E+07
    18 'Prefactor '    .98034E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2804       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83692       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=   9183.633     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1489 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92926E-07    14.373       -.62478E-06** at limit **
   2  norm          .84031        .91836       -.58828E-07   -.21004E-02
   3  Prefactor     35.890        1.5072       -.11135E-06    .46974E-02
   4  norm           .0000        1.4195        .68918E-06** at limit **
   5  Prefactor     6.9915        1.0550       -.12284E-06    .40476E-02
   6  Prefactor     .53685E-06    10.094       -.29911E-05** at limit **
   7  Prefactor     4.2578        .44073       -.10897E-05   -.85753E-03
   8  Prefactor     7.2064        9.0036        .79389E-06    .38677E-03
   9  norm          4.4593        1.4076       -.22874E-06   -.54077E-03
  10  norm          1.1938        1.0921       -.19619E-06    .31495E-04
  11  Prefactor     .55511E-09    5.2323        .14120E-05** at limit **
  12  Prefactor     3.5530        5.6920       -.31759E-05   -.99547E-01
  13  Prefactor     1.1874        .21325        .38610E-06    .47792E-03
  14  Prefactor      .0000        1.9622        .22997E-06** at limit **
  15  Prefactor     .52736E-08    6.8840        .10541E-05** at limit **
  16  Prefactor     34.184        25.742       -.41050E-05    .59992E-01
  17  Prefactor     4.8765        5.4746        .59614E-06   -.16469E-02
  18  Prefactor     .23276E-06    3.9468       -.47758E-06** at limit **
  19  Normalizat    1.2814        .26384        .57469E-07   -.18587E-04
  20  Prefactor     .83679        .13751        .28286E-05   -.33762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.29257e-08
  norm       = 0.840312
  Prefactor  = 35.8897
  norm       = 0
  Prefactor  = 6.99154
  Prefactor  = 5.36848e-07
  Prefactor  = 4.25782
  Prefactor  = 7.20644
  norm       = 4.45935
  norm       = 1.19384
  Prefactor  = 5.55112e-10
  Prefactor  = 3.553
  Prefactor  = 1.18742
  Prefactor  = 0
  Prefactor  = 5.27356e-09
  Prefactor  = 34.1838
  Prefactor  = 4.8765
  Prefactor  = 2.32758e-07
  Normalizat = 1.2814
  Prefactor  = 0.83679
 **********
 **   18 **HESSE 
 **********

 FCN=   9183.633     FROM HESSE     STATUS=OK           335 CALLS     1824 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92926E-07    14.574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .84031        .92556        .49990E-03   -1.5690    
   3  Prefactor     35.890        16.809        .16706E-03   -1.5588    
   4  norm           .0000        1.4190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9915        16.321        .37919E-03   -1.5655    
   6  Prefactor     .53685E-06    11.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2578        .45121        .44323E-02   -1.5295    
   8  Prefactor     7.2064        9.0021        .37203E-02   -1.5171    
   9  norm          4.4593        1.4072        .47652E-03   -1.5666    
  10  norm          1.1938        1.1000        .10414E-02   -1.5686    
  11  Prefactor     .55511E-09    8.7170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5530        10.957        .52882E-03   -1.5670    
  13  Prefactor     1.1874        .21320        .40307E-02   -1.5490    
  14  Prefactor      .0000        1.9616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .52736E-08    6.9082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.184        27.826        .17028E-03   -1.5591    
  17  Prefactor     4.8765        5.4799        .45463E-03   -1.5664    
  18  Prefactor     .23276E-06    9.0047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2814        .22515        .78871E-01   -.84123    
  20  Prefactor     .83679        .11644        .44196E-01   -.98386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0027e-07
Minuit parameter uncertainties:
  1  0.00232779
  2  0.925559
  3  16.809
  4  2.4842e-06
  5  16.3214
  6  0.00493423
  7  0.451211
  8  9.00384
  9  1.40721
  10  1.09997
  11  0.000138594
  12  10.9566
  13  0.213196
  14  1.07753e-05
  15  0.000381883
  16  27.8265
  17  5.47994
  18  0.00289558
  19  0.225324
  20  0.116471
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.553e+00  1.096e+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:  8.368e-01  1.165e-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.281e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90174/likelihoodResults_697334401_697593601_4FGL_J2248.9+2106_daily_bin1767.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) = 9182.13553153
delta logL = 1.49715620334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9182.08137009
delta logL = 1.5513176442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91117E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.9605       1.0000          .0000       10.000    
     3 'Normalizat'    1.1190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89390       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=   9182.081     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      284 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90208E-01    .61291        .37401E-03** at limit **
   2  Index         4.9644        1.6685        .10147        .25517E-03
   3  Normalizat    1.1197        .52968E-01    .83479E-01   -.15441E-04
   4  Prefactor     .89356        .28430E-01    .44927E-01   -.11124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0902075
  Index      = 4.96437
  Normalizat = 1.11972
  Prefactor  = 0.893559
 **********
 **   18 **HESSE 
 **********

 FCN=   9182.081     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      319 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90208E-01    1.5661        .16937E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.9644        3.1741        .36798E-02   -.71260E-02
   3  Normalizat    1.1197        .20345        .36961E-03   -.89121    
   4  Prefactor     .89356        .10704        .21894E-03   -.96367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.63713e-08
Minuit parameter uncertainties:
  1  0.751732
  2  3.43895
  3  0.203591
  4  0.107061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90174': 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) = 9182.08136302
delta logL = 1.55132471375

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  9.021e-02  7.517e-01  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  4.964e+00  3.439e+00  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.936e-01  1.071e-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.120e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.57
Ra Dec: 342.246 21.116
Photon Index (Free Index): 4.96 +/- 3.44
Photon Flux (Free Index): 1.25e-07 +/- 7.31e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.11e-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/90174/cmap_HighResolution_697334401_697593601_4FGL_J2248.9+2106_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='1.55e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2023-02-09 02:10:13.779269', photon_index_error2='3.44', photon_index2='4.96', ts='0.12', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.11e-05', EG='1.28', time_epoch_completed='1675937413.78', return_code='0', job_id='90174', GAL2='0.89', EG2='1.12', return_code2='102', photon_flux_error2='7.31e-08', ts2='3.57', photon_index='2.30' WHERE bin_id='1767' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 02:10:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 90174: <4FGL_J2248.9+2106_daily_bin1767> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1767> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Feb  9 01:55:24 2023
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:57:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:57:50 2023
Terminated at Thu Feb  9 02:10:14 2023
Results reported at Thu Feb  9 02:10:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1767 342.246 21.1159 697334401 697593601 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            890 sec.

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

