/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 13 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 = 7413
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1156
RA = 342.193, Dec = -32.5926
tmin = 538963201, tmax = 539222401
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='474673', job_status='RUN', time_executed='2021-09-28 20:41:34.795453', time_epoch_executed='1632886894.8' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474673

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474673/ft1_4FGL_J2248.7-3235_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474673/ft2_4FGL_J2248.7-3235_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474673/ft1_4FGL_J2248.7-3235_daily_bin1156.fits outfile=/scratch/kocevski/474673/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1156.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=538963201.0 tmax=539222401.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 4.64
user 4.40
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474673/ft1_filtered_4FGL_J2248.7-3235_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/474673/ft2_4FGL_J2248.7-3235_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/474673/ltcube_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.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/474673/ft2_4FGL_J2248.7-3235_daily_bin1156.fits
.....................!
real 11.63
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474673/ft1_filtered_4FGL_J2248.7-3235_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/474673/ft2_4FGL_J2248.7-3235_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/474673/ltcube_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.fits outfile=/scratch/kocevski/474673/expmap_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.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/474673/ltcube_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.fits
.....................!
real 190.37
user 184.90
sys 4.99

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/474673/ft1_filtered_4FGL_J2248.7-3235_daily_bin1156.fits scfile=/scratch/kocevski/474673/ft2_4FGL_J2248.7-3235_daily_bin1156.fits outfile=/scratch/kocevski/474673/cmap_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474673/ft1_filtered_4FGL_J2248.7-3235_daily_bin1156.fits scfile=/scratch/kocevski/474673/ft2_4FGL_J2248.7-3235_daily_bin1156.fits outfile=/scratch/kocevski/474673/cmap_HighResolution_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474673/ft1_filtered_4FGL_J2248.7-3235_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/474673/ft2_4FGL_J2248.7-3235_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474673/Model_4FGL_J2248.7-3235_daily_bin1156.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/474673/ft1_filtered_4FGL_J2248.7-3235_daily_bin1156.fits.....................!
real 59.74
user 58.30
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2647       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .88047E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.314       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11316E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9228       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11868E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21227E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0464       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0416       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.224       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6743       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.692       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2285       1.0000         .10000E-03   10000.    
    23 'norm      '    5.5293       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96063       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93937       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=   8256.021     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2949 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2647        .34468       -.18012E-08    .65419E-04
   2  Prefactor     10.391        12.989        .14933E-07    .82119E-05
   3  Prefactor     .10000E-03    2.2532       -.27854E-07** at limit **
   4  norm          .10000E-03    12.774       -.79897E-07** at limit **
   5  Prefactor     .10000E-03    9.3068       -.15387E-07** at limit **
   6  Prefactor     22.296        16.471       -.22695E-06    .59246E-04
   7  Prefactor     .10000E-03    18.844       -.32037E-06** at limit **
   8  Prefactor     .10000E-03    5.1292        .21650E-08** at limit **
   9  norm          2.9223        1.8679        .22867E-07   -.10615E-03
  10  Prefactor     .10000E-03    25.871        .17196E-06** at limit **
  11  Prefactor     4.6359        8.7009        .27060E-05   -.20389E-03
  12  Prefactor     .10000E-03    3.3186       -.17743E-06** at limit **
  13  norm          .10000E-03    1.0938        .47025E-07** at limit **
  14  Prefactor     .10000E-03    8.3109        .19286E-05** at limit **
  15  Prefactor     2.0629        11.223       -.21513E-05   -.50877E-03
  16  norm          4.0416        .99002        .21946E-07   -.30883E-02
  17  Prefactor     49.090        40.573       -.12743E-05    .14749E-03
  18  Prefactor     45.220        13.823        .99530E-07   -.15895E-03
  19  norm          2.6745        2.8316       -.37999E-07   -.17944E-05
  20  norm          .10000E-03    2.0651        .36690E-07** at limit **
  21  Prefactor     62.688        48.630        .48943E-06   -.31619E-04
  22  Prefactor     6.2417        48.705       -.13544E-05    .37131E-04
  23  norm          5.5313        5.0023       -.29743E-07    .57963E-06
  24  Normalizat    .96059        .16553       -.89622E-06   -.92745E-05
  25  Prefactor     .93939        .16043        .90370E-06    .81892E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26469
  Prefactor  = 10.3906
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92234
  Prefactor  = 0.0001
  Prefactor  = 4.63591
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 2.06288
  norm       = 4.04161
  Prefactor  = 49.0902
  Prefactor  = 45.2195
  norm       = 2.67449
  norm       = 0.0001
  Prefactor  = 62.6875
  Prefactor  = 6.24173
  norm       = 5.53125
  Normalizat = 0.960592
  Prefactor  = 0.939385
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.021     FROM HESSE     STATUS=OK           433 CALLS     3382 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2647        .34570        .27029E-04   -1.5483    
   2  Prefactor     10.391        12.986        .12429E-03   -1.5063    
   3  Prefactor     .10000E-03    2.2651        .13316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    84.811        .62261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.296        16.455        .84795E-04   -1.4763    
   7  Prefactor     .10000E-03    19.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9223        1.8558        .95508E-04   -1.5366    
  10  Prefactor     .10000E-03    25.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6359        8.6610        .93444E-03   -1.5277    
  12  Prefactor     .10000E-03    31.033        .31965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1007        .92759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.735        .43614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0629        10.202        .28902E-03   -1.5421    
  16  norm          4.0416        .98500        .34044E-04   -1.5306    
  17  Prefactor     49.090        39.832        .57244E-04   -1.4306    
  18  Prefactor     45.220        13.663        .59619E-04   -1.4362    
  19  norm          2.6745        2.8376        .15105E-03   -1.5381    
  20  norm          .10000E-03    2.0753        .12750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.688        48.692        .50680E-04   -1.4123    
  22  Prefactor     6.2417        48.380        .16085E-03   -1.5208    
  23  norm          5.5313        4.9990        .15293E-03   -1.5238    
  24  Normalizat    .96059        .19260        .24889E-03   -.94363    
  25  Prefactor     .93939        .18787        .25716E-03   -.94778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63755e-10
Minuit parameter uncertainties:
  1  0.345702
  2  12.9898
  3  1.41716e-06
  4  0.000144769
  5  2.23127e-06
  6  16.4583
  7  3.70844e-07
  8  2.75628e-07
  9  1.85589
  10  1.56605e-05
  11  8.66334
  12  0.000459685
  13  2.09102e-06
  14  0.000766298
  15  9.17744
  16  0.985008
  17  39.8541
  18  13.6637
  19  2.83774
  20  2.36288e-06
  21  48.7227
  22  34.7936
  23  4.99936
  24  0.192742
  25  0.187999
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.636e+00  8.663e+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:  9.394e-01  1.880e-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.606e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/474673/likelihoodResults_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.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) = 8255.68728441
delta logL = 0.334011547186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8255.66257498
delta logL = 0.358720986324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69599       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2073       1.0000          .0000       10.000    
     3 'Normalizat'    .92080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96972       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=   8255.663     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      297 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69406        11.154        .12046E-01    .15033E-02
   2  Index         5.2100        4.0578        .20154        .11834E-03
   3  Normalizat    .92071        .30903E-01    .45167E-01    .43985E-03
   4  Prefactor     .96983        .31792E-01    .45888E-01   -.90499E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.694059
  Index      = 5.20996
  Normalizat = 0.92071
  Prefactor  = 0.969833
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.663     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69406        36.331        .75949E-04   -1.5541    
   2  Index         5.2100        7.0801        .10777E-01    .42004E-01
   3  Normalizat    .92071        .14410        .12678E-02   -.95736    
   4  Prefactor     .96983        .14602        .25356E-03   -.93742    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33838e-06
Minuit parameter uncertainties:
  1  10.0488
  2  11.3535
  3  0.144158
  4  0.146076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474673': 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) = 8255.66257446
delta logL = 0.358721500535

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  6.941e-01  1.005e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  5.210e+00  1.135e+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:  9.698e-01  1.461e-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.207e-01  1.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 5.21 +/- 11.35
Photon Flux (Free Index): 4.05e-08 +/- 4.10e-08
Energy Flux (Free Index): 5.29e-06 +/- 7.43e-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/474673/cmap_HighResolution_538963201_539222401_4FGL_J2248.7-3235_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', comment='SUCCESS', energy_flux2='5.29e-06', dlogl='3.59e-01', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-09-28 20:56:00.642491', photon_index_error2='11.35', photon_index2='5.21', ts='0.34', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.37e-08', energy_flux_error2='7.43e-06', EG='0.96', time_epoch_completed='1632887760.64', return_code='0', job_id='474673', GAL2='0.97', EG2='0.92', return_code2='102', photon_flux_error2='4.10e-08', ts2='1.12', photon_index='2.76' WHERE bin_id='1156' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 474673: <4FGL_J2248.7-3235_daily_bin1156> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1156> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:09 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:10 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:10 2021
Terminated at Tue Sep 28 20:56:01 2021
Results reported at Tue Sep 28 20:56:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1156 342.193 -32.5926 538963201 539222401 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 :                                   856.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

