/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 66 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is 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 = 7534
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1123
RA = 342.193, Dec = -32.5926
tmin = 530409601, tmax = 530668801
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='474620', job_status='RUN', time_executed='2021-09-28 20:42:21.164091', time_epoch_executed='1632886941.16' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474620

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474620/ft1_4FGL_J2248.7-3235_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474620/ft1_4FGL_J2248.7-3235_daily_bin1123.fits outfile=/scratch/kocevski/474620/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1123.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=530409601.0 tmax=530668801.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.65
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.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/474620/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/474620/ltcube_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.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/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits
.....................!
real 13.83
user 13.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/474620/ltcube_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.fits outfile=/scratch/kocevski/474620/expmap_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.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/474620/ltcube_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.fits
.....................!
real 191.96
user 187.28
sys 4.22

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/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits scfile=/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits outfile=/scratch/kocevski/474620/cmap_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits scfile=/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits outfile=/scratch/kocevski/474620/cmap_HighResolution_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474620/Model_4FGL_J2248.7-3235_daily_bin1123.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/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits.....................!
real 54.95
user 53.60
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits', '/scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits', expMap='/scratch/kocevski/474620/expmap_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.fits', expCube='/scratch/kocevski/474620/ltcube_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/474620/Model_4FGL_J2248.7-3235_daily_bin1123.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/474620/ft1_filtered_4FGL_J2248.7-3235_daily_bin1123.fits
Spacecraft file(s): /scratch/kocevski/474620/ft2_4FGL_J2248.7-3235_daily_bin1123.fits
Exposure map: /scratch/kocevski/474620/expmap_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.fits
Exposure cube: /scratch/kocevski/474620/ltcube_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/474620/Model_4FGL_J2248.7-3235_daily_bin1123.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) = 7241.86012535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9638       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.3295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13217E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.147       1.0000         .10000E-03   10000.    
     9 'norm      '    .10684E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.891       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.700       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2362       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5035       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.027       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.223       1.0000         .10000E-03   10000.    
    23 'norm      '    .10539E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0931       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74029       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.

 FCN=   7241.695     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2511 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8031        .40329        .15663E-07   -.19471E-03
   2  Prefactor     6.9629        10.998        .13025E-06   -.96211E-06
   3  Prefactor     .10000E-03    2.7567        .11332E-06** at limit **
   4  norm          9.3305        11.329       -.37401E-06   -.98214E-05
   5  Prefactor     .10000E-03    10.953       -.35574E-07** at limit **
   6  Prefactor     .62458        13.061       -.25733E-05    .31265E-03
   7  Prefactor     .10000E-03    5.8835       -.24122E-06** at limit **
   8  Prefactor     12.142        15.878       -.35804E-06   -.84380E-05
   9  norm          .10000E-03    .62344       -.15180E-06** at limit **
  10  Prefactor     7.0284        45.139        .61199E-05    .53236E-05
  11  Prefactor     18.887        10.703       -.94193E-08   -.14021E-04
  12  Prefactor     .10000E-03    1.4038        .30270E-07** at limit **
  13  norm          1.0871        3.0852       -.44508E-06   -.24306E-04
  14  Prefactor     .10000E-03    4.1051       -.37416E-08** at limit **
  15  Prefactor     14.718        11.124        .14933E-06    .17272E-04
  16  norm          2.2354        .80131        .15594E-07    .12822E-03
  17  Prefactor     .10000E-03    22.949        .28185E-06** at limit **
  18  Prefactor     .10000E-03    8.5567       -.43440E-07** at limit **
  19  norm          .10000E-03    1.8952        .10320E-06** at limit **
  20  norm          1.5033        4.2883        .18230E-06    .74777E-04
  21  Prefactor     10.043        22.155       -.24341E-05   -.30750E-04
  22  Prefactor     28.223        27.489        .15538E-05   -.17664E-04
  23  norm          .10000E-03    4.1171       -.28201E-05** at limit **
  24  Normalizat    1.0930        .17082       -.16657E-06    .18716E-04
  25  Prefactor     .74035        .16131       -.14995E-05   -.14705E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80307
  Prefactor  = 6.96294
  Prefactor  = 0.0001
  norm       = 9.33046
  Prefactor  = 0.0001
  Prefactor  = 0.624582
  Prefactor  = 0.0001
  Prefactor  = 12.1418
  norm       = 0.0001
  Prefactor  = 7.02842
  Prefactor  = 18.8873
  Prefactor  = 0.0001
  norm       = 1.08709
  Prefactor  = 0.0001
  Prefactor  = 14.7181
  norm       = 2.23538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.5033
  Prefactor  = 10.0426
  Prefactor  = 28.2227
  norm       = 0.0001
  Normalizat = 1.09304
  Prefactor  = 0.740351
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.695     FROM HESSE     STATUS=OK           433 CALLS     2944 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8031        .40379        .24737E-04   -1.5439    
   2  Prefactor     6.9629        11.000        .15203E-03   -1.5180    
   3  Prefactor     .10000E-03    2.7788        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.3305        11.320        .13121E-03   -1.5097    
   5  Prefactor     .10000E-03    10.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62458        88.556        .51411E-02   -1.5550    
   7  Prefactor     .10000E-03    5.9380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.142        15.898        .11494E-03   -1.5011    
   9  norm          .10000E-03    .63193        .65607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0284        45.149        .14934E-03   -1.5178    
  11  Prefactor     18.887        10.736        .92150E-04   -1.4839    
  12  Prefactor     .10000E-03    1.4070        .98467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0871        2.9953        .22069E-03   -1.5499    
  14  Prefactor     .10000E-03    4.1062        .16830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.718        11.249        .10447E-03   -1.4940    
  16  norm          2.2354        .81948        .36566E-04   -1.5409    
  17  Prefactor     .10000E-03    22.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9083        .11429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5033        4.2565        .28895E-03   -1.5463    
  21  Prefactor     10.043        22.158        .12654E-03   -1.5074    
  22  Prefactor     28.223        27.437        .75412E-04   -1.4645    
  23  norm          .10000E-03    4.2278        .23717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0930        .20224        .22284E-03   -.89976    
  25  Prefactor     .74035        .19326        .26587E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75409e-09
Minuit parameter uncertainties:
  1  0.403792
  2  11.0032
  3  1.74621e-05
  4  11.3227
  5  1.53857e-05
  6  14.8955
  7  4.5273e-05
  8  15.9036
  9  1.05341e-05
  10  35.6663
  11  10.7371
  12  3.69182e-06
  13  2.99571
  14  5.63864e-07
  15  11.2504
  16  0.819486
  17  3.96596e-05
  18  5.05582e-06
  19  4.26825e-06
  20  4.25739
  21  22.1759
  22  27.4493
  23  4.55299e-05
  24  0.202381
  25  0.193439
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.889e+01  1.074e+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:  7.404e-01  1.934e-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:  1.093e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.08
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 8.75e-06

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) = 7241.69041949
delta logL = 0.00410145485603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7241.68874813
delta logL = 0.00577282054473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.244       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8275       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74294       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=   7241.689     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      192 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.244        209.20        .23443E-02   -.56338E-04
   2  Index         2.8275        6.4097        .21393       -.96267E-04
   3  Normalizat    1.0898        .67181E-01    .38430E-01    .38685E-05
   4  Prefactor     .74295        .68067E-01    .42970E-01    .27534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2436
  Index      = 2.82754
  Normalizat = 1.08981
  Prefactor  = 0.742952
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.689     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.244        12.497        .93770E-04   -1.4853    
   2  Index         2.8275        .64540        .78180E-02   -.44947    
   3  Normalizat    1.0898        .19120        .22311E-03   -.90080    
   4  Prefactor     .74295        .18898        .26546E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92054e-10
Minuit parameter uncertainties:
  1  12.4983
  2  0.647627
  3  0.191323
  4  0.189146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474620': 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) = 7241.68874812
delta logL = 0.0057728268248

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.824e+01  1.250e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.828e+00  6.476e-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.430e-01  1.891e-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:  1.090e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.83 +/- 0.65
Photon Flux (Free Index): 6.89e-08 +/- 4.16e-08
Energy Flux (Free Index): 1.51e-05 +/- 8.98e-06

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/474620/cmap_HighResolution_530409601_530668801_4FGL_J2248.7-3235_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.51e-05', photon_flux_error='3.80e-08', dlogl='5.77e-03', energy_flux='1.54e-05', photon_flux2='6.89e-08', job_status='DONE', time_completed='2021-09-28 20:53:19.463416', photon_index_error2='0.65', photon_index2='2.83', ts='5.08', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='8.98e-06', EG='1.09', time_epoch_completed='1632887599.46', return_code='0', job_id='474620', GAL2='0.74', EG2='1.09', return_code2='0', energy_flux_error='8.75e-06', photon_flux_error2='4.16e-08', ts2='5.08', photon_index='2.76' WHERE bin_id='1123' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:53:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 474620: <4FGL_J2248.7-3235_daily_bin1123> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1123> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:04 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:41:06 2021
Terminated at Tue Sep 28 20:53:19 2021
Results reported at Tue Sep 28 20:53:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1123 342.193 -32.5926 530409601 530668801 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 :                                   651.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            735 sec.

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

