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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1148
RA = 342.193, Dec = -32.5926
tmin = 536889601, tmax = 537148801
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='474660', job_status='RUN', time_executed='2021-09-28 20:42:27.450902', time_epoch_executed='1632886947.45' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474660

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474660/ft1_4FGL_J2248.7-3235_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474660/ft2_4FGL_J2248.7-3235_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474660/ft1_4FGL_J2248.7-3235_daily_bin1148.fits outfile=/scratch/kocevski/474660/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1148.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=536889601.0 tmax=537148801.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.76
user 3.50
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474660/ft1_filtered_4FGL_J2248.7-3235_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/474660/ft2_4FGL_J2248.7-3235_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/474660/ltcube_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.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/474660/ft2_4FGL_J2248.7-3235_daily_bin1148.fits
.....................!
real 12.24
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474660/ft1_filtered_4FGL_J2248.7-3235_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/474660/ft2_4FGL_J2248.7-3235_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/474660/ltcube_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.fits outfile=/scratch/kocevski/474660/expmap_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.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/474660/ltcube_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.fits
.....................!
real 190.96
user 185.10
sys 5.36

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/474660/ft1_filtered_4FGL_J2248.7-3235_daily_bin1148.fits scfile=/scratch/kocevski/474660/ft2_4FGL_J2248.7-3235_daily_bin1148.fits outfile=/scratch/kocevski/474660/cmap_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.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/474660/ft1_filtered_4FGL_J2248.7-3235_daily_bin1148.fits scfile=/scratch/kocevski/474660/ft2_4FGL_J2248.7-3235_daily_bin1148.fits outfile=/scratch/kocevski/474660/cmap_HighResolution_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474660/ft1_filtered_4FGL_J2248.7-3235_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/474660/ft2_4FGL_J2248.7-3235_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474660/Model_4FGL_J2248.7-3235_daily_bin1148.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/474660/ft1_filtered_4FGL_J2248.7-3235_daily_bin1148.fits.....................!
real 39.19
user 37.84
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2413       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.681       1.0000         .10000E-03   10000.    
     4 'norm      '    37.593       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77513       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.689       1.0000         .10000E-03   10000.    
     9 'norm      '    .10433E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.764       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6198       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.613       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6411       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4071       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.161       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.667       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.4234       1.0000         .10000E-03   10000.    
    21 'Prefactor '    166.79       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.8917       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82342       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=   4444.035     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2907 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2578        .50113        .82665E-08    .11625E-03
   2  Prefactor     5.2541        38.296       -.71069E-06    .76607E-05
   3  Prefactor     23.688        14.453        .39677E-06   -.25860E-04
   4  norm          37.605        30.469       -.40018E-06    .27337E-05
   5  Prefactor     .10000E-03    31.458       -.14776E-07** at limit **
   6  Prefactor     .10000E-03    17.231        .18932E-07** at limit **
   7  Prefactor     .83811        15.509        .27160E-05   -.16503E-03
   8  Prefactor     30.697        38.290       -.34299E-06    .46058E-04
   9  norm          .10000E-03    2.7469        .10436E-05** at limit **
  10  Prefactor     47.786        53.356       -.21119E-05   -.25442E-04
  11  Prefactor     .10000E-03    12.769       -.11817E-06** at limit **
  12  Prefactor     2.6193        5.8767        .27734E-05    .19400E-04
  13  norm          .10000E-03    1.7259        .33027E-07** at limit **
  14  Prefactor     30.611        26.240        .25701E-06   -.61399E-04
  15  Prefactor     9.6540        23.802        .11358E-06   -.49826E-04
  16  norm          3.4067        1.7003       -.13148E-07   -.10713E-03
  17  Prefactor     69.170        70.254       -.32105E-06    .28865E-04
  18  Prefactor     12.668        21.823        .36243E-06   -.32676E-04
  19  norm          .10000E-03    3.0775       -.91968E-08** at limit **
  20  norm          6.4242        6.6371        .64627E-07    .44773E-05
  21  Prefactor     166.82        107.03       -.31161E-05    .67330E-04
  22  Prefactor     .10000E-03    79.340       -.54127E-06** at limit **
  23  norm          6.8911        9.9549        .17427E-05    .31541E-04
  24  Normalizat    1.1222        .26130       -.27694E-05   -.11195E-03
  25  Prefactor     .82368        .22754        .25556E-05   -.51965E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2578
  Prefactor  = 5.25406
  Prefactor  = 23.6882
  norm       = 37.6048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.838112
  Prefactor  = 30.697
  norm       = 0.0001
  Prefactor  = 47.7863
  Prefactor  = 0.0001
  Prefactor  = 2.61926
  norm       = 0.0001
  Prefactor  = 30.6113
  Prefactor  = 9.65405
  norm       = 3.40671
  Prefactor  = 69.1703
  Prefactor  = 12.668
  norm       = 0.0001
  norm       = 6.42422
  Prefactor  = 166.822
  Prefactor  = 0.0001
  norm       = 6.89106
  Normalizat = 1.12225
  Prefactor  = 0.823681
 **********
 **   18 **HESSE 
 **********

 FCN=   4444.035     FROM HESSE     STATUS=OK           433 CALLS     3340 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2578        .50179        .28886E-04   -1.5484    
   2  Prefactor     5.2541        38.301        .17557E-03   -1.5249    
   3  Prefactor     23.688        14.535        .82314E-04   -1.4734    
   4  norm          37.605        30.469        .32684E-03   -1.4481    
   5  Prefactor     .10000E-03    31.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83811        55.817        .46229E-02   -1.5525    
   8  Prefactor     30.697        38.603        .72326E-04   -1.4599    
   9  norm          .10000E-03    2.8947        .21792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.786        53.518        .58019E-04   -1.4324    
  11  Prefactor     .10000E-03    12.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6193        6.0245        .12030E-02   -1.5384    
  13  norm          .10000E-03    1.7270        .85505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.611        26.128        .72416E-04   -1.4601    
  15  Prefactor     9.6540        24.161        .12906E-03   -1.5086    
  16  norm          3.4067        1.7624        .41847E-04   -1.5339    
  17  Prefactor     69.170        70.284        .48267E-04   -1.4043    
  18  Prefactor     12.668        21.657        .11255E-03   -1.4996    
  19  norm          .10000E-03    3.0805        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.4242        6.6426        .15836E-03   -1.5201    
  21  Prefactor     166.82        107.88        .15617E-03   -1.3118    
  22  Prefactor     .10000E-03    79.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.8911        9.9736        .76414E-03   -1.5183    
  24  Normalizat    1.1222        .31904        .26811E-03   -.89041    
  25  Prefactor     .82368        .27926        .29096E-03   -.98861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83496e-10
Minuit parameter uncertainties:
  1  0.501792
  2  28.397
  3  14.5375
  4  30.4813
  5  4.28566e-05
  6  7.42506e-06
  7  13.6918
  8  38.6343
  9  7.28787e-05
  10  53.5715
  11  1.12903e-05
  12  6.02587
  13  1.68417e-06
  14  26.1378
  15  24.1856
  16  1.76242
  17  70.3682
  18  21.6706
  19  3.03547e-06
  20  6.64335
  21  108.012
  22  7.84894e-05
  23  9.97599
  24  0.319596
  25  0.279746
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.129e-05  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.237e-01  2.797e-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.122e+00  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474660/likelihoodResults_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.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): 102
logL (Free Index) = 4444.03539249
delta logL = -0.000370795904928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4444.03502206
delta logL = -3.64413608622e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7562       1.0000          .0000       10.000    
     3 'Normalizat'    1.1221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82385       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=   4444.035     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    474.66        .18142E-02** at limit **
   2  Index         2.7234        6.2754        .50000        .26024E-05
   3  Normalizat    1.1223        .36750E-01    .26811E-03    .55123E-06
   4  Prefactor     .82368        .34874E-01    .29096E-03    .82054E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100212
  Index      = 2.72338
  Normalizat = 1.12225
  Prefactor  = 0.82368
 **********
 **   18 **HESSE 
 **********

 FCN=   4444.035     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    1704.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7234        6.9539        .50000       -.47274    
   3  Normalizat    1.1223        .85730E-01    .10725E-04   -.89041    
   4  Prefactor     .82368        .81353E-01    .11638E-04   -.98861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.64279e-09
Minuit parameter uncertainties:
  1  0.0392093
  2  2558.67
  3  0.0857407
  4  0.0813646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474660': 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) = 4444.03502168
delta logL = 1.75614331965e-08

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.002e-04  3.921e-02  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.723e+00  2.559e+03  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:  8.237e-01  8.136e-02  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.122e+00  8.574e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.193 -32.593

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/474660/cmap_HighResolution_536889601_537148801_4FGL_J2248.7-3235_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.73e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-28 20:52:15.882565', job_id='474660', GAL2='0.82', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632887535.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.76e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1148' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 474660: <4FGL_J2248.7-3235_daily_bin1148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1148 342.193 -32.5926 536889601 537148801 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            668 sec.

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

