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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1100
RA = 342.193, Dec = -32.5926
tmin = 524448001, tmax = 524707201
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='474586', job_status='RUN', time_executed='2021-09-28 20:41:39.046956', time_epoch_executed='1632886899.05' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1100'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474586/ft1_4FGL_J2248.7-3235_daily_bin1100.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474586/ft2_4FGL_J2248.7-3235_daily_bin1100.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474586/ft1_4FGL_J2248.7-3235_daily_bin1100.fits outfile=/scratch/kocevski/474586/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1100.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=524448001.0 tmax=524707201.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.39
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474586/ft2_4FGL_J2248.7-3235_daily_bin1100.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/474586/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1100.fits evtable="EVENTS" outfile="/scratch/kocevski/474586/ft1_filtered_4FGL_J2248.7-3235_daily_bin1100.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474586/ft1_filtered_4FGL_J2248.7-3235_daily_bin1100.fits" evtable="EVENTS" scfile=/scratch/kocevski/474586/ft2_4FGL_J2248.7-3235_daily_bin1100.fits sctable="SC_DATA" outfile=/scratch/kocevski/474586/ltcube_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.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/474586/ft2_4FGL_J2248.7-3235_daily_bin1100.fits
.....................!
real 12.40
user 12.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474586/ft1_filtered_4FGL_J2248.7-3235_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/474586/ft2_4FGL_J2248.7-3235_daily_bin1100.fits sctable="SC_DATA" expcube=/scratch/kocevski/474586/ltcube_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.fits outfile=/scratch/kocevski/474586/expmap_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.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/474586/ltcube_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.fits
.....................!
real 191.31
user 186.18
sys 4.74

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/474586/ft1_filtered_4FGL_J2248.7-3235_daily_bin1100.fits scfile=/scratch/kocevski/474586/ft2_4FGL_J2248.7-3235_daily_bin1100.fits outfile=/scratch/kocevski/474586/cmap_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474586/ft1_filtered_4FGL_J2248.7-3235_daily_bin1100.fits scfile=/scratch/kocevski/474586/ft2_4FGL_J2248.7-3235_daily_bin1100.fits outfile=/scratch/kocevski/474586/cmap_HighResolution_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.193 yref=-32.5926 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0975       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49529       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4474       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36497E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .47106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17948       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12198E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2503       1.0000         .10000E-03   10000.    
    19 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9267       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5848       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8336       1.0000         .10000E-03   10000.    
    23 'norm      '    6.4225       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87075       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1173       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=   6422.607     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2964 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0975        .40449        .17874E-07   -.50697E-04
   2  Prefactor     .10000E-03    10.591       -.34783E-07** at limit **
   3  Prefactor     .48403        3.0910        .52426E-06   -.16104E-03
   4  norm          8.4517        19.973        .98246E-06    .38437E-05
   5  Prefactor     13.827        39.963       -.25449E-05   -.36101E-04
   6  Prefactor     .10000E-03    9.4106        .55384E-07** at limit **
   7  Prefactor     .10001E-03    6.5700        .10712E-05** at limit **
   8  Prefactor     .10000E-03    8.5435        .14882E-06** at limit **
   9  norm          .47034        1.7494        .20418E-06   -.17332E-03
  10  Prefactor     .10000E-03    34.023        .22113E-06** at limit **
  11  Prefactor     8.9168        8.9831        .44089E-06   -.16884E-04
  12  Prefactor     .17521        5.0374        .16960E-06   -.60172E-04
  13  norm          4.3244        2.9492       -.11866E-07   -.11194E-04
  14  Prefactor     .10000E-03    26.215        .12236E-06** at limit **
  15  Prefactor     .10000E-03    3.9381        .12685E-08** at limit **
  16  norm          2.9062        .76353       -.92857E-07   -.13755E-03
  17  Prefactor     .10000E-03    50.320        .31967E-07** at limit **
  18  Prefactor     3.2514        7.1802        .33004E-05   -.30765E-03
  19  norm          .10000E-03    2.3205       -.26068E-06** at limit **
  20  norm          2.9282        5.6854        .10331E-06   -.80236E-04
  21  Prefactor     2.4746        221.65        .15452E-04    .16743E-04
  22  Prefactor     4.8354        46.272        .20459E-05   -.21252E-05
  23  norm          6.4248        4.7045       -.78393E-06   -.69260E-03
  24  Normalizat    .87085        .17314        .30540E-06   -.22441E-03
  25  Prefactor     1.1172        .17375       -.12902E-05   -.33917E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0975
  Prefactor  = 0.0001
  Prefactor  = 0.48403
  norm       = 8.45169
  Prefactor  = 13.8268
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.470338
  Prefactor  = 0.0001
  Prefactor  = 8.91675
  Prefactor  = 0.17521
  norm       = 4.32443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.90617
  Prefactor  = 0.0001
  Prefactor  = 3.25144
  norm       = 0.0001
  norm       = 2.92816
  Prefactor  = 2.47458
  Prefactor  = 4.83545
  norm       = 6.42482
  Normalizat = 0.870846
  Prefactor  = 1.11717
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.607     FROM HESSE     STATUS=OK           439 CALLS     3403 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0975        .40402        .29945E-04   -1.5498    
   2  Prefactor     .10000E-03    10.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .48403        10.427        .26586E-02   -1.5569    
   4  norm          8.4517        19.880        .13793E-03   -1.5126    
   5  Prefactor     13.827        39.736        .10736E-03   -1.4964    
   6  Prefactor     .10000E-03    9.4493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    40.515        .38632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .47034        1.7363        .19320E-03   -1.5571    
  10  Prefactor     .10000E-03    34.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9168        8.9951        .13418E-03   -1.5111    
  12  Prefactor     .17521        35.101        .34034E-02   -1.5624    
  13  norm          4.3244        2.9513        .10930E-03   -1.5292    
  14  Prefactor     .10000E-03    27.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9649        .15501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9062        .76321        .32840E-04   -1.5367    
  17  Prefactor     .10000E-03    50.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2514        7.3384        .11232E-02   -1.5347    
  19  norm          .10000E-03    2.3364        .11918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9282        5.6670        .23745E-03   -1.5366    
  21  Prefactor     2.4746        224.69        .25382E-03   -1.5393    
  22  Prefactor     4.8354        46.168        .18298E-03   -1.5268    
  23  norm          6.4248        4.7125        .12178E-03   -1.5201    
  24  Normalizat    .87085        .20620        .25118E-03   -.97492    
  25  Prefactor     1.1172        .20768        .23444E-03   -.88920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2329e-08
Minuit parameter uncertainties:
  1  0.404024
  2  3.92398e-06
  3  4.49348
  4  19.8958
  5  39.8116
  6  2.99268e-06
  7  0.00147974
  8  3.16261e-05
  9  1.73652
  10  4.34742e-05
  11  8.99648
  12  4.96138
  13  2.95142
  14  4.07251e-05
  15  1.53193e-06
  16  0.763212
  17  2.12439e-05
  18  7.34045
  19  1.76858e-05
  20  5.66801
  21  47.3432
  22  29.9126
  23  4.71277
  24  0.206388
  25  0.20783
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  8.917e+00  8.996e+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.117e+00  2.078e-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.708e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 7.27e-06 +/- 7.33e-06

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

Saving results to:
/scratch/kocevski/474586/likelihoodResults_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.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) = 6421.05181695
delta logL = 1.5547740455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6420.71662419
delta logL = 1.88996680507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23380E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .77431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1975       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=   6420.717     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      448 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23379E-02    .14891E-02    .20872E-04** at limit **
   2  Index        10.0000        .57343        .50000    ** at limit **
   3  Normalizat    .77415        .20494        .26431E-03   -.67100E-04
   4  Prefactor     1.1977        .21139        .22755E-03    .12137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00233789
  Index      = 10
  Normalizat = 0.77415
  Prefactor  = 1.19767
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.717     FROM HESSE     STATUS=OK            33 CALLS      481 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23379E-02    .14623E-02    .83487E-06   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .55341        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77415        .20531        .10572E-04   -1.0103    
   4  Prefactor     1.1977        .21170        .45511E-04   -.86403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59246e-10
Minuit parameter uncertainties:
  1  0.00146232
  2  1.17041e-05
  3  0.205514
  4  0.211853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474586': 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) = 6420.71662346
delta logL = 1.88996754245

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.338e-03  1.462e-03  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.000e+01  1.170e-05  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.198e+00  2.119e-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:  7.742e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.50e-08 +/- 5.15e-08
Energy Flux (Free Index): 9.49e-06 +/- 5.79e-06

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/474586/cmap_HighResolution_524448001_524707201_4FGL_J2248.7-3235_daily_bin1100.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='9.49e-06', photon_flux_error='3.19e-08', dlogl='1.89e+00', energy_flux='7.27e-06', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-28 20:54:03.106125', photon_index_error2='0.00', photon_index2='10.00', ts='1.79', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='5.79e-06', EG='0.87', time_epoch_completed='1632887643.11', return_code='0', job_id='474586', GAL2='1.20', EG2='0.77', return_code2='0', energy_flux_error='7.33e-06', photon_flux_error2='5.15e-08', ts2='5.92', photon_index='2.76' WHERE bin_id='1100' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 474586: <4FGL_J2248.7-3235_daily_bin1100> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1100 342.193 -32.5926 524448001 524707201 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

