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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1079
RA = 342.193, Dec = -32.5926
tmin = 519004801, tmax = 519264001
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='474556', job_status='RUN', time_executed='2021-09-28 20:41:46.665055', time_epoch_executed='1632886906.67' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474556/ft1_4FGL_J2248.7-3235_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474556/ft1_4FGL_J2248.7-3235_daily_bin1079.fits outfile=/scratch/kocevski/474556/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1079.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=519004801.0 tmax=519264001.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.55
user 3.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.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/474556/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1079.fits evtable="EVENTS" outfile="/scratch/kocevski/474556/ft1_filtered_4FGL_J2248.7-3235_daily_bin1079.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474556/ft1_filtered_4FGL_J2248.7-3235_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/474556/ltcube_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.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/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.fits
.....................!
real 11.83
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474556/ft1_filtered_4FGL_J2248.7-3235_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/474556/ltcube_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.fits outfile=/scratch/kocevski/474556/expmap_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.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/474556/ltcube_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.fits
.....................!
real 191.12
user 185.64
sys 5.00

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/474556/ft1_filtered_4FGL_J2248.7-3235_daily_bin1079.fits scfile=/scratch/kocevski/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.fits outfile=/scratch/kocevski/474556/cmap_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474556/ft1_filtered_4FGL_J2248.7-3235_daily_bin1079.fits scfile=/scratch/kocevski/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.fits outfile=/scratch/kocevski/474556/cmap_HighResolution_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.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/474556/ft1_filtered_4FGL_J2248.7-3235_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/474556/ft2_4FGL_J2248.7-3235_daily_bin1079.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474556/Model_4FGL_J2248.7-3235_daily_bin1079.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/474556/ft1_filtered_4FGL_J2248.7-3235_daily_bin1079.fits....................!
real 40.35
user 39.02
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4451       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .17998E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.649       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16616E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.583       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0879       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.9051       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86792       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1022       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=   4975.743     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2945 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4451        .47985        .12781E-07   -.11352E-03
   2  Prefactor     .10000E-03    8.4553        .10316E-07** at limit **
   3  Prefactor     .10000E-03    5.2202       -.24318E-07** at limit **
   4  norm          23.270        22.460       -.10581E-05   -.30817E-03
   5  Prefactor     .10001E-03    28.399        .51913E-05** at limit **
   6  Prefactor     11.117        28.305        .13806E-05    .19869E-04
   7  Prefactor     .10000E-03    4.1346        .27448E-06** at limit **
   8  Prefactor     .10000E-03    32.987       -.22267E-05** at limit **
   9  norm          .10000E-03    2.3666        .33408E-05** at limit **
  10  Prefactor     14.721        47.570       -.11865E-05   -.26527E-03
  11  Prefactor     .10022E-03    8.8703        .72631E-06** at limit **
  12  Prefactor     .10000E-03    4.7438       -.48444E-07** at limit **
  13  norm          .10000E-03    2.2676        .42177E-07** at limit **
  14  Prefactor     19.115        22.867        .16014E-06   -.22525E-03
  15  Prefactor     17.588        17.048       -.61195E-06   -.63900E-03
  16  norm          1.0872        1.0275        .88218E-07   -.10999E-02
  17  Prefactor     .10001E-03    80.137       -.69286E-05** at limit **
  18  Prefactor     .10000E-03    13.990        .16437E-06** at limit **
  19  norm          .10000E-03    4.0268       -.10477E-06** at limit **
  20  norm          .10000E-03    2.5959       -.50327E-07** at limit **
  21  Prefactor     .10002E-03    84.532        .71608E-05** at limit **
  22  Prefactor     .10000E-03    27.284       -.35493E-05** at limit **
  23  norm          6.9034        5.0561        .76543E-07   -.19866E-03
  24  Normalizat    .86776        .20981       -.35524E-06   -.52478E-03
  25  Prefactor     1.1023        .20342       -.78000E-06   -.56657E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.2698
  Prefactor  = 0.000100009
  Prefactor  = 11.1166
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100004
  Prefactor  = 14.7212
  Prefactor  = 0.000100224
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.115
  Prefactor  = 17.5878
  norm       = 1.08724
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100004
  norm       = 6.90341
  Normalizat = 0.867758
  Prefactor  = 1.10234
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.743     FROM HESSE     STATUS=OK           425 CALLS     3370 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4451        .48055        .27328E-04   -1.5468    
   2  Prefactor     .10000E-03    8.4678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2750        .15729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.270        22.550        .83037E-04   -1.4743    
   5  Prefactor     .10001E-03    29.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.117        28.352        .12015E-03   -1.5041    
   7  Prefactor     .10000E-03    4.1413        .14012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7379        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.721        49.006        .10465E-03   -1.4940    
  11  Prefactor     .10022E-03    15.060        .62971E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7859        .15001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2762        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.115        22.866        .91605E-04   -1.4833    
  15  Prefactor     17.588        17.041        .95515E-04   -1.4869    
  16  norm          1.0872        .99210        .51492E-04   -1.5499    
  17  Prefactor     .10001E-03    81.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0739        .13779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6012        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    86.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.9034        5.0303        .13010E-03   -1.5182    
  24  Normalizat    .86776        .25034        .26094E-03   -.97602    
  25  Prefactor     1.1023        .24211        .23647E-03   -.89392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52436e-09
Minuit parameter uncertainties:
  1  0.480556
  2  3.35867e-06
  3  4.48882e-07
  4  22.5583
  5  0.00100113
  6  28.3859
  7  1.32005e-05
  8  0.000417085
  9  0.000208687
  10  49.14
  11  0.00367199
  12  2.65003e-06
  13  2.21075e-07
  14  22.8765
  15  17.0455
  16  0.992112
  17  0.00213039
  18  3.59006e-05
  19  6.0024e-06
  20  9.19163e-07
  21  0.00239129
  22  0.000634232
  23  5.0306
  24  0.250676
  25  0.242352
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.002e-04  3.672e-03  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.102e+00  2.424e-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:  8.678e-01  2.507e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474556/likelihoodResults_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.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) = 4975.74293699
delta logL = -1.94066396944e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4975.57199038
delta logL = 0.170927202852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0396       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1184       1.0000          .0000       10.000    
     3 'Normalizat'    .82705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1269       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=   4975.572     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      399 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0371        94.367        .72393E-02    .60708E-03
   2  Index         4.1196        7.0305        .31693        .32175E-04
   3  Normalizat    .82739        .40078E-01    .43962E-01    .22156E-03
   4  Prefactor     1.1266        .40683E-01    .52988E-01    .10090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03713
  Index      = 4.11964
  Normalizat = 0.827393
  Prefactor  = 1.12663
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.572     FROM HESSE     STATUS=OK            31 CALLS      430 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0371        6.9458        .17088E-03   -1.5423    
   2  Index         4.1196        2.3473        .10892E-01   -.17699    
   3  Normalizat    .82739        .24116        .26656E-03   -.99060    
   4  Prefactor     1.1266        .23873        .23427E-03   -.88620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30821e-09
Minuit parameter uncertainties:
  1  6.94854
  2  2.44682
  3  0.241476
  4  0.238962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474556': 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) = 4975.57198904
delta logL = 0.170928536307

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.037e+00  6.949e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.120e+00  2.447e+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.127e+00  2.390e-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:  8.274e-01  2.415e-01  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/474556/cmap_HighResolution_519004801_519264001_4FGL_J2248.7-3235_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-28 20:52:13.890253', job_id='474556', GAL2='1.13', fit_tolerance='1e-08', EG2='0.83', EG='0.87', time_epoch_completed='1632887533.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.71e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1079' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 474556: <4FGL_J2248.7-3235_daily_bin1079> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1079 342.193 -32.5926 519004801 519264001 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 :                                   619.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            676 sec.

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

