/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 156 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2248.7-3235_daily_bin394
RA = 342.193, Dec = -32.5926
tmin = 341452801, tmax = 341712001
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='471429', job_status='RUN', time_executed='2021-09-28 20:33:12.797449', time_epoch_executed='1632886392.8' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/471429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/471429/ft1_4FGL_J2248.7-3235_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/471429/ft2_4FGL_J2248.7-3235_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/471429/ft1_4FGL_J2248.7-3235_daily_bin394.fits outfile=/scratch/kocevski/471429/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin394.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=341452801.0 tmax=341712001.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.35
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/471429/ft1_filtered_4FGL_J2248.7-3235_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/471429/ft2_4FGL_J2248.7-3235_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/471429/ltcube_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.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/471429/ft2_4FGL_J2248.7-3235_daily_bin394.fits
.....................!
real 12.05
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/471429/ft1_filtered_4FGL_J2248.7-3235_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/471429/ft2_4FGL_J2248.7-3235_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/471429/ltcube_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.fits outfile=/scratch/kocevski/471429/expmap_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.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/471429/ltcube_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.fits
.....................!
real 191.99
user 187.25
sys 4.39

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/471429/ft1_filtered_4FGL_J2248.7-3235_daily_bin394.fits scfile=/scratch/kocevski/471429/ft2_4FGL_J2248.7-3235_daily_bin394.fits outfile=/scratch/kocevski/471429/cmap_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/471429/ft1_filtered_4FGL_J2248.7-3235_daily_bin394.fits scfile=/scratch/kocevski/471429/ft2_4FGL_J2248.7-3235_daily_bin394.fits outfile=/scratch/kocevski/471429/cmap_HighResolution_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/471429/ft1_filtered_4FGL_J2248.7-3235_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/471429/ft2_4FGL_J2248.7-3235_daily_bin394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/471429/Model_4FGL_J2248.7-3235_daily_bin394.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/471429/ft1_filtered_4FGL_J2248.7-3235_daily_bin394.fits.....................!
real 49.98
user 48.55
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3301       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5476       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6450       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.208       1.0000         .10000E-03   10000.    
     9 'norm      '    .66648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1179       1.0000         .10000E-03   10000.    
    13 'norm      '    .66099       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .17557E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.963       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11357E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1024       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58650       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0425       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=   6727.215     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2969 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3301        .33957        .70600E-08    .44353E-04
   2  Prefactor     3.5463        5.7462        .12566E-05   -.10117E-02
   3  Prefactor     .10000E-03    5.7596       -.96852E-08** at limit **
   4  norm          .10000E-03    23.988       -.33056E-06** at limit **
   5  Prefactor     .10000E-03    10.147        .62298E-06** at limit **
   6  Prefactor     6.6700        15.431        .95364E-06    .81260E-05
   7  Prefactor     1.6428        9.5723       -.84973E-06   -.15607E-03
   8  Prefactor     30.208        19.670        .37900E-06    .13456E-04
   9  norm          .66629        1.7656       -.63884E-06   -.85204E-03
  10  Prefactor     15.373        41.768        .61318E-05   -.29862E-04
  11  Prefactor     8.3478        9.2988       -.24728E-06   -.10705E-03
  12  Prefactor     4.1176        4.8766        .16259E-05    .20746E-03
  13  norm          .66092        2.4724        .97209E-07   -.50277E-03
  14  Prefactor     .10000E-03    3.8675       -.16379E-07** at limit **
  15  Prefactor     .10000E-03    7.8632        .20484E-05** at limit **
  16  norm          1.6361        .55494       -.89217E-08   -.79730E-03
  17  Prefactor     .10000E-03    8.6862       -.21099E-05** at limit **
  18  Prefactor     .10000E-03    7.0902       -.79448E-06** at limit **
  19  norm          .10000E-03    1.3644       -.14649E-07** at limit **
  20  norm          .10000E-03    4.9928        .38015E-06** at limit **
  21  Prefactor     17.974        32.358        .33031E-06   -.59344E-05
  22  Prefactor     .10000E-03    199.36        .20540E-06** at limit **
  23  norm          2.1019        3.7332        .85515E-08   -.20151E-03
  24  Normalizat    .58642        .14903       -.15810E-05   -.32532E-04
  25  Prefactor     1.0426        .14743        .29672E-06   -.12910E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33007
  Prefactor  = 3.54634
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.67002
  Prefactor  = 1.64275
  Prefactor  = 30.2083
  norm       = 0.666287
  Prefactor  = 15.3735
  Prefactor  = 8.3478
  Prefactor  = 4.11761
  norm       = 0.660921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.9737
  Prefactor  = 0.000100001
  norm       = 2.10185
  Normalizat = 0.586419
  Prefactor  = 1.04263
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.215     FROM HESSE     STATUS=OK           433 CALLS     3402 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3301        .34011        .23470E-04   -1.5477    
   2  Prefactor     3.5463        8.9262        .10730E-02   -1.5331    
   3  Prefactor     .10000E-03    5.9695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    24.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6700        15.405        .15537E-03   -1.5191    
   7  Prefactor     1.6428        9.6393        .32933E-03   -1.5452    
   8  Prefactor     30.208        19.664        .72898E-04   -1.4608    
   9  norm          .66629        1.4685        .13655E-02   -1.5545    
  10  Prefactor     15.373        41.857        .10219E-03   -1.4924    
  11  Prefactor     8.3478        9.3334        .13876E-03   -1.5130    
  12  Prefactor     4.1176        4.8851        .19044E-03   -1.5302    
  13  norm          .66092        2.4643        .23331E-03   -1.5545    
  14  Prefactor     .10000E-03    3.8708        .15740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6361        .54614        .32429E-04   -1.5452    
  17  Prefactor     .10000E-03    8.7223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3678        .93496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    31.215        .34917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.974        32.095        .94500E-04   -1.4860    
  22  Prefactor     .10000E-03    206.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1019        3.6904        .15710E-03   -1.5418    
  24  Normalizat    .58642        .17440        .25152E-03   -1.0856    
  25  Prefactor     1.0426        .17553        .20328E-03   -.91322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77602e-09
Minuit parameter uncertainties:
  1  0.340109
  2  8.92959
  3  1.15672e-05
  4  4.12881e-05
  5  1.68486e-05
  6  15.4137
  7  7.96032
  8  19.6682
  9  1.46856
  10  41.9366
  11  9.33499
  12  4.88556
  13  2.46464
  14  2.55155e-06
  15  3.02316e-05
  16  0.546146
  17  6.34886e-05
  18  2.12345e-05
  19  1.60064e-07
  20  9.01304e-05
  21  32.1262
  22  0.000728111
  23  3.69085
  24  0.174563
  25  0.175627
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  8.348e+00  9.335e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.043e+00  1.756e-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:  5.864e-01  1.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 6.81e-06 +/- 7.61e-06

TS (Fixed Index): 1.01
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 9.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/471429/likelihoodResults_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.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) = 6726.57150893
delta logL = 0.643780354198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6726.35991859
delta logL = 0.855370694138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12179E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    8.3583       1.0000          .0000       10.000    
     3 'Normalizat'    .54455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0835       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=   6726.360     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      299 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12135E-01    .15158        .14725E-02   -.21357E-02
   2  Index         8.3611        7.9089        .25173        .29293E-04
   3  Normalizat    .54472        .34315E-01    .58882E-01    .16687E-03
   4  Prefactor     1.0833        .36364E-01    .38251E-01   -.82297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0121354
  Index      = 8.36115
  Normalizat = 0.544722
  Prefactor  = 1.08334
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.360     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      332 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12135E-01    .34156        .66782E-04   -1.5686    
   2  Index         8.3611        9.0813        .10727E-01    .73722    
   3  Normalizat    .54472        .12234        .26049E-03   -1.1039    
   4  Prefactor     1.0833        .12761        .19990E-03   -.90001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00936e-10
Minuit parameter uncertainties:
  1  0.128232
  2  7.49699
  3  0.122404
  4  0.127642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/471429': 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) = 6726.35991762
delta logL = 0.855371656399

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.214e-02  1.282e-01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  8.361e+00  7.497e+00  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.083e+00  1.276e-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:  5.447e-01  1.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.86
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 8.36 +/- 7.50
Photon Flux (Free Index): 4.59e-08 +/- 3.53e-08
Energy Flux (Free Index): 5.28e-06 +/- 4.50e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/471429/cmap_HighResolution_341452801_341712001_4FGL_J2248.7-3235_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='5.28e-06', photon_flux_error='3.31e-08', dlogl='8.55e-01', energy_flux='6.81e-06', photon_flux2='4.59e-08', job_status='DONE', time_completed='2021-09-28 20:45:30.373980', photon_index_error2='7.50', photon_index2='8.36', ts='1.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.66e-08', energy_flux_error2='4.50e-06', EG='0.59', time_epoch_completed='1632887130.37', return_code='0', job_id='471429', GAL2='1.08', EG2='0.54', return_code2='102', energy_flux_error='7.61e-06', photon_flux_error2='3.53e-08', ts2='2.86', photon_index='2.76' WHERE bin_id='394' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:45:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 471429: <4FGL_J2248.7-3235_daily_bin394> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin394> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 20:30:26 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:30:28 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:30:28 2021
Terminated at Tue Sep 28 20:45:30 2021
Results reported at Tue Sep 28 20:45:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin394 342.193 -32.5926 341452801 341712001 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 :                                   737.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

