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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1745
RA = 342.193, Dec = -32.5926
tmin = 691632001, tmax = 691891201
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='657700', job_status='RUN', time_executed='2022-12-05 01:26:43.898854', time_epoch_executed='1670232403.9' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657700/ft1_4FGL_J2248.7-3235_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657700/ft1_4FGL_J2248.7-3235_daily_bin1745.fits outfile=/scratch/kocevski/657700/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1745.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=691632001.0 tmax=691891201.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.35
user 2.15
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.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/657700/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 520

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/657700/ltcube_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.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/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits
.....................!
real 12.85
user 12.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/657700/ltcube_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.fits outfile=/scratch/kocevski/657700/expmap_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.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/657700/ltcube_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.fits
.....................!
real 191.90
user 186.38
sys 5.12

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

Setting source of interest to:
4FGL J2248.7-3235 @ 342.193 -32.5926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits scfile=/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits outfile=/scratch/kocevski/657700/cmap_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.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.193 yref=-32.5926 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits scfile=/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits outfile=/scratch/kocevski/657700/cmap_HighResolution_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.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.193 yref=-32.5926 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657700/Model_4FGL_J2248.7-3235_daily_bin1745.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/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits....................!
real 46.92
user 45.56
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits', '/scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits', expMap='/scratch/kocevski/657700/expmap_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.fits', expCube='/scratch/kocevski/657700/ltcube_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657700/Model_4FGL_J2248.7-3235_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.7-3235'

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.211e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/657700/ft1_filtered_4FGL_J2248.7-3235_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/657700/ft2_4FGL_J2248.7-3235_daily_bin1745.fits
Exposure map: /scratch/kocevski/657700/expmap_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.fits
Exposure cube: /scratch/kocevski/657700/ltcube_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657700/Model_4FGL_J2248.7-3235_daily_bin1745.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) = 5712.97348001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99673       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.0511       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3101       1.0000          .0000       .10000E+07
     4 'norm      '    6.5890       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13012E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .14670E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .58953E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .78560E-02   1.0000          .0000       .10000E+07
     9 'norm      '    4.0952       1.0000          .0000       .10000E+07
    10 'Prefactor '    55.689       1.0000          .0000       .10000E+07
    11 'Prefactor '    24.837       1.0000          .0000       .10000E+07
    12 'Prefactor '    .52954E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .43772E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .48058E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    39.482       1.0000          .0000       .10000E+07
    16 'norm      '    .27700       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10709E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .88041E-07   1.0000          .0000       .10000E+07
    19 'norm      '    .36022E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    27.459       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22881E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.6011       1.0000          .0000       .10000E+07
    23 'Normalizat'    .84165       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5712.837     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2036 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99716        .36557       -.15830E-08    .37656E-04
   2  Prefactor     5.9537        21.161        .75036E-07    .11952E-01
   3  Prefactor     6.3418        8.4699        .69960E-07    .30291E-03
   4  norm          6.4572        2.3419       -.49156E-08    .13675E-01
   5  Prefactor     .58842E-08    45.393       -.53980E-06** at limit **
   6  Prefactor     .62856E-04    31.010       -.32223E-06** at limit **
   7  Prefactor      .0000        2.9113       -.56035E-07** at limit **
   8  Prefactor     .11606E-04    63.979       -.79225E-06** at limit **
   9  norm          3.9722        2.6924        .21061E-07   -.49112E-04
  10  Prefactor     61.823        52.757       -.12640E-06   -.31674E-01
  11  Prefactor     24.879        13.317        .40807E-07   -.13840E-02
  12  Prefactor      .0000        2.2036       -.38457E-07** at limit **
  13  norm           .0000        1.8906       -.50075E-07** at limit **
  14  Prefactor      .0000        5.5484       -.10647E-06** at limit **
  15  Prefactor     39.347        14.107       -.67976E-07    .37086E-02
  16  norm          .27787        .74489       -.99714E-08    .82982E-04
  17  Prefactor     .16653E-09    10.155        .43500E-06** at limit **
  18  norm           .0000        2.7804        .67427E-07** at limit **
  19  norm           .0000        3.4958       -.82997E-08** at limit **
  20  Prefactor     28.026        3.2523        .27020E-07   -.13955E-01
  21  Prefactor     .38858E-09    15.904        .12589E-06** at limit **
  22  norm          1.5934        2.9301       -.16051E-07    .16454E-03
  23  Normalizat    .83822        .23496        .32459E-05   -.13067E-04
  24  Prefactor     1.0623        .22658       -.12327E-05   -.10069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.997161
  Prefactor  = 5.95369
  Prefactor  = 6.34176
  norm       = 6.45716
  Prefactor  = 5.88418e-09
  Prefactor  = 6.28565e-05
  Prefactor  = 0
  Prefactor  = 1.1606e-05
  norm       = 3.9722
  Prefactor  = 61.8227
  Prefactor  = 24.8792
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 39.3475
  norm       = 0.277871
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 0
  Prefactor  = 28.0258
  Prefactor  = 3.88578e-10
  norm       = 1.59337
  Normalizat = 0.838224
  Prefactor  = 1.06233
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.837     FROM HESSE     STATUS=OK           443 CALLS     2479 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99716        .36536        .43650E-03   -1.5688    
   2  Prefactor     5.9537        21.445        .40793E-03   -1.5659    
   3  Prefactor     6.3418        8.4600        .39936E-03   -1.5658    
   4  norm          6.4572        17.293        .39071E-03   -1.5657    
   5  Prefactor     .58842E-08    45.436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62856E-04    109.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.8990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11606E-04    78.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9722        2.7142        .49794E-03   -1.5668    
  10  Prefactor     61.823        54.494        .13401E-03   -1.5551    
  11  Prefactor     24.879        13.298        .20070E-03   -1.5608    
  12  Prefactor      .0000        2.2038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.8834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        5.5661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.347        12.348        .15916E-03   -1.5583    
  16  norm          .27787        .64619        .10540E-02   -1.5719    
  17  Prefactor     .16653E-09    10.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        2.7796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        3.5022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.026        41.140        .19087E-03   -1.5602    
  21  Prefactor     .38858E-09    15.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5934        3.1143        .83749E-03   -1.5683    
  23  Normalizat    .83822        .19928        .44151E-01   -.98666    
  24  Prefactor     1.0623        .19041        .39312E-01   -.90680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91558e-07
Minuit parameter uncertainties:
  1  0.365363
  2  21.4458
  3  8.46003
  4  17.2929
  5  0.00103472
  6  0.165791
  7  7.95024e-07
  8  0.0605307
  9  2.71424
  10  54.4947
  11  13.2983
  12  3.04366e-07
  13  5.32973e-07
  14  4.04753e-06
  15  12.3483
  16  0.646195
  17  8.29171e-05
  18  1.71621e-06
  19  1.80843e-06
  20  41.1403
  21  0.000162653
  22  3.11435
  23  0.199454
  24  0.190527
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.488e+01  1.330e+01  0.000e+00  1.000e+06 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.062e+00  1.905e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  8.382e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.67
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 8.82e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.08e-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) = 5712.77095179
delta logL = 0.0659010012787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5712.76700112
delta logL = 0.0698516659195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.526       1.0000          .0000       .10000E+07
     2 'Index     '    2.5481       1.0000          .0000       10.000    
     3 'Normalizat'    .85163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   5712.767     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      269 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.530        14.607        .77680E-05    .25465E-03
   2  Index         2.5487        .55227        .77613E-02    .11279E-04
   3  Normalizat    .85191        .22452        .26472E-03    .77045E-04
   4  Prefactor     1.0524        .22217        .24037E-03   -.70946E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5296
  Index      = 2.5487
  Normalizat = 0.851906
  Prefactor  = 1.0524
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.767     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.530        14.536        .31072E-06   -1.5605    
   2  Index         2.5487        .54927        .31045E-03   -.51239    
   3  Normalizat    .85191        .22479        .10589E-04   -.98171    
   4  Prefactor     1.0524        .22243        .96146E-05   -.91003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29464e-11
Minuit parameter uncertainties:
  1  14.5357
  2  0.550734
  3  0.22504
  4  0.222625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657700': 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) = 5712.7669956
delta logL = 0.0698571857247

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.653e+01  1.454e+01  0.000e+00  1.000e+06 ( 1.000e-12)
312        Index:  2.549e+00  5.507e-01  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.052e+00  2.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  8.519e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.79
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.55 +/- 0.55
Photon Flux (Free Index): 7.78e-08 +/- 5.09e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/657700/cmap_HighResolution_691632001_691891201_4FGL_J2248.7-3235_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.82e-08', energy_flux2='2.14e-05', photon_flux_error='4.71e-08', dlogl='6.99e-02', energy_flux='2.03e-05', photon_flux2='7.78e-08', job_status='DONE', time_completed='2022-12-05 01:35:43.358513', photon_index_error2='0.55', photon_index2='2.55', ts='6.67', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.84', time_epoch_completed='1670232943.36', return_code='0', job_id='657700', GAL2='1.05', EG2='0.85', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.09e-08', ts2='6.79', photon_index='2.76' WHERE bin_id='1745' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:35:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 657700: <4FGL_J2248.7-3235_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1745> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec  5 01:25:19 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:25:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:25:20 2022
Terminated at Mon Dec  5 01:35:44 2022
Results reported at Mon Dec  5 01:35:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1745 342.193 -32.5926 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.7-3235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

