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 145 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7476
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1664
RA = 342.193, Dec = -32.5926
tmin = 670636801, tmax = 670896001
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='316811', job_status='RUN', time_executed='2022-04-06 00:38:28.663866', time_epoch_executed='1649230708.66' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316811/ft1_4FGL_J2248.7-3235_daily_bin1664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316811/ft1_4FGL_J2248.7-3235_daily_bin1664.fits outfile=/scratch/kocevski/316811/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1664.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=670636801.0 tmax=670896001.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 5.39
user 5.10
sys 0.28

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

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

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

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

Number of photons that the gtmktime cut: 602

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits" evtable="EVENTS" scfile=/scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits sctable="SC_DATA" outfile=/scratch/kocevski/316811/ltcube_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.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/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits
.....................!
real 11.55
user 11.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits sctable="SC_DATA" expcube=/scratch/kocevski/316811/ltcube_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.fits outfile=/scratch/kocevski/316811/expmap_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.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/316811/ltcube_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.fits
.....................!
real 190.03
user 184.99
sys 4.69

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/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits scfile=/scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits outfile=/scratch/kocevski/316811/cmap_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits scfile=/scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits outfile=/scratch/kocevski/316811/cmap_HighResolution_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/316811/Model_4FGL_J2248.7-3235_daily_bin1664.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/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits.....................!
real 49.31
user 48.04
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits', '/scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits', expMap='/scratch/kocevski/316811/expmap_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.fits', expCube='/scratch/kocevski/316811/ltcube_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/316811/Model_4FGL_J2248.7-3235_daily_bin1664.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  1.000e-04  1.000e+04 ( 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/316811/ft1_filtered_4FGL_J2248.7-3235_daily_bin1664.fits
Spacecraft file(s): /scratch/kocevski/316811/ft2_4FGL_J2248.7-3235_daily_bin1664.fits
Exposure map: /scratch/kocevski/316811/expmap_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.fits
Exposure cube: /scratch/kocevski/316811/ltcube_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/316811/Model_4FGL_J2248.7-3235_daily_bin1664.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) = 6541.25310491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77461       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.838       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34985       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    100.19       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.590       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20759E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1261       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7265       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98073       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81230       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=   6541.229     FROM MIGRAD    STATUS=CONVERGED   1045 CALLS     3460 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77457        .29711        .26489E-04   -.11974E-03
   2  Prefactor     .10000E-03    6.7061        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.5415        .12550E-02** at limit **
   4  norm          .10000E-03    6.6071        .18142E-02** at limit **
   5  Prefactor     .10000E-03    15.074        .18142E-02** at limit **
   6  Prefactor     .10000E-03    8.4552        .18142E-02** at limit **
   7  Prefactor     16.836        10.284        .97607E-04   -.12125E-03
   8  Prefactor     .19916        14.420        .82372E-01    .21075E-03
   9  norm          .10000E-03    1.8127        .16660E-02** at limit **
  10  Prefactor     100.17        42.487        .40164E-04   -.75843E-03
  11  Prefactor     17.587        11.027        .95497E-04   -.13119E-03
  12  Prefactor     .10000E-03    11.461        .31109E-02** at limit **
  13  norm          .10000E-03    1.3981        .92764E-03** at limit **
  14  Prefactor     11.555        11.683        .11785E-03   -.31182E-03
  15  Prefactor     12.690        7.7651        .11243E-03   -.92833E-03
  16  norm          .10000E-03    .25121        .66052E-03** at limit **
  17  Prefactor     .10000E-03    23.242        .18142E-02** at limit **
  18  Prefactor     .10000E-03    2.0644        .11339E-02** at limit **
  19  norm          4.1233        3.6329        .14085E-03    .73894E-03
  20  norm          4.7246        5.2606        .92542E-03   -.29914E-03
  21  Prefactor     .10010E-03    199.40        .36285E-03** at limit **
  22  Prefactor     .10000E-03    43.273        .18142E-02** at limit **
  23  norm          .10000E-03    2.1858        .11572E-02** at limit **
  24  Normalizat    .98083        .18473        .22196E-03   -.39382E-03
  25  Prefactor     .81235        .18207        .24409E-03   -.37287E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.77457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8358
  Prefactor  = 0.199157
  norm       = 0.000100001
  Prefactor  = 100.173
  Prefactor  = 17.5871
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 11.5549
  Prefactor  = 12.6904
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.12328
  norm       = 4.72456
  Prefactor  = 0.000100095
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 0.980832
  Prefactor  = 0.812354
 **********
 **   18 **HESSE 
 **********

 FCN=   6541.229     FROM HESSE     STATUS=OK           411 CALLS     3871 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77457        .29711        .10595E-05   -1.5532    
   2  Prefactor     .10000E-03    6.7069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5418        .25100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.6074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.836        10.284        .39043E-05   -1.4887    
   8  Prefactor     .19916        13.344        .87197E-01   -1.5619    
   9  norm          .10000E-03    1.8144        .33319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.17        42.468        .80327E-05   -1.3703    
  11  Prefactor     17.587        11.027        .38199E-05   -1.4869    
  12  Prefactor     .10000E-03    11.550        .62219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3983        .18553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.555        11.683        .23570E-04   -1.5028    
  15  Prefactor     12.690        7.7641        .44973E-05   -1.4995    
  16  norm          .10000E-03    .25130        .13210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0645        .22678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1233        3.6329        .56340E-05   -1.5302    
  20  norm          4.7246        5.2599        .37017E-04   -1.5273    
  21  Prefactor     .10010E-03    199.41        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1863        .23144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98083        .18491        .44391E-04   -.93675    
  25  Prefactor     .81235        .18224        .48819E-04   -.99275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01462e-09
Minuit parameter uncertainties:
  1  0.297114
  2  2.83516e-05
  3  1.22584e-05
  4  2.89882e-06
  5  4.38186e-05
  6  1.5883e-05
  7  10.2846
  8  3.26029
  9  9.04972e-05
  10  42.4805
  11  11.0279
  12  0.000211537
  13  5.12479e-06
  14  11.6854
  15  7.7647
  16  3.33628e-06
  17  0.000158516
  18  5.03858e-06
  19  3.63311
  20  5.26045
  21  0.00875089
  22  0.000583964
  23  5.01929e-05
  24  0.185027
  25  0.182378
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.759e+01  1.103e+01  1.000e-04  1.000e+04 ( 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:  8.124e-01  1.824e-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:  9.808e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 8.99e-06

TS (Fixed Index): 3.90
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/316811/likelihoodResults_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.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) = 6541.05220745
delta logL = 0.177062234035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6541.05199374
delta logL = 0.177275936941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.693       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3929       1.0000          .0000       10.000    
     3 'Normalizat'    .99728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79844       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.

 FCN=   6541.052     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.676        376.58        .22012E-02    .21377E-04
   2  Index         2.3918        5.9624        .23277        .53800E-05
   3  Normalizat    .99739        .10578        .46133E-01    .94365E-05
   4  Prefactor     .79840        .13205        .43697E-01    .16095E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6758
  Index      = 2.39184
  Normalizat = 0.997387
  Prefactor  = 0.798402
 **********
 **   18 **HESSE 
 **********

 FCN=   6541.052     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .40E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.676        13.162        .88049E-04   -1.4798    
   2  Index         2.3918        .57664        .81813E-02   -.54876    
   3  Normalizat    .99739        .18124        .22033E-03   -.93118    
   4  Prefactor     .79840        .18140        .24593E-03   -.99787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00799e-14
Minuit parameter uncertainties:
  1  13.1639
  2  0.578414
  3  0.181357
  4  0.181539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316811': 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) = 6541.05199066
delta logL = 0.177279022269

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.068e+01  1.316e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.392e+00  5.784e-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:  7.984e-01  1.815e-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:  9.974e-01  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.22
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.39 +/- 0.58
Photon Flux (Free Index): 5.33e-08 +/- 3.78e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.35e-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/316811/cmap_HighResolution_670636801_670896001_4FGL_J2248.7-3235_daily_bin1664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='1.77e-05', photon_flux_error='3.90e-08', dlogl='1.77e-01', energy_flux='1.43e-05', photon_flux2='5.33e-08', job_status='DONE', time_completed='2022-04-06 00:51:18.616643', photon_index_error2='0.58', photon_index2='2.39', ts='3.90', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.35e-05', EG='0.98', time_epoch_completed='1649231478.62', return_code='0', job_id='316811', GAL2='0.80', EG2='1.00', return_code2='0', energy_flux_error='8.99e-06', photon_flux_error2='3.78e-08', ts2='4.22', photon_index='2.76' WHERE bin_id='1664' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr  6 00:51:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0145>
Subject: Job 316811: <4FGL_J2248.7-3235_daily_bin1664> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1664> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr  6 00:35:51 2022
Job was executed on host(s) <bullet0145>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:35:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:35:53 2022
Terminated at Wed Apr  6 00:51:19 2022
Results reported at Wed Apr  6 00:51:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1664 342.193 -32.5926 670636801 670896001 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 :                                   771.72 sec.
    Max Memory :                                 757 MB
    Average Memory :                             283.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3052 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

