/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 180 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 = 7658
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2248.9+2106_daily_bin68
RA = 342.246, Dec = 21.1159
tmin = 256953601, tmax = 257212801
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='477473', job_status='RUN', time_executed='2021-09-28 20:53:31.011487', time_epoch_executed='1632887611.01' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477473/ft1_4FGL_J2248.9+2106_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477473/ft1_4FGL_J2248.9+2106_daily_bin68.fits outfile=/scratch/kocevski/477473/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin68.fits ra=342.246 dec=21.1159 rad=12.0 tmin=256953601.0 tmax=257212801.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 1.44
user 1.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.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/477473/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.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/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/477473/ltcube_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.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/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits
.....................!
real 12.81
user 12.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/477473/ltcube_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.fits outfile=/scratch/kocevski/477473/expmap_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.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/477473/ltcube_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.fits
.....................!
real 190.54
user 185.91
sys 4.26

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2248.9+2106 @ 342.246 21.1159

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits scfile=/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits outfile=/scratch/kocevski/477473/cmap_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.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.246 yref=21.1159 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits scfile=/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits outfile=/scratch/kocevski/477473/cmap_HighResolution_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.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.246 yref=21.1159 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/477473/Model_4FGL_J2248.9+2106_daily_bin68.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/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits.....................!
real 83.51
user 81.85
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits', '/scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits', expMap='/scratch/kocevski/477473/expmap_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.fits', expCube='/scratch/kocevski/477473/ltcube_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/477473/Model_4FGL_J2248.9+2106_daily_bin68.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.9+2106'

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/477473/ft1_filtered_4FGL_J2248.9+2106_daily_bin68.fits
Spacecraft file(s): /scratch/kocevski/477473/ft2_4FGL_J2248.9+2106_daily_bin68.fits
Exposure map: /scratch/kocevski/477473/expmap_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.fits
Exposure cube: /scratch/kocevski/477473/ltcube_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/477473/Model_4FGL_J2248.9+2106_daily_bin68.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) = 7697.97807298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.273       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0698       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6212       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0796       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5202       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13857E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4559       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29264E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.808       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .65539       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86685       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7697.974     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2928 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.268        45.375       -.25143E-05   -.66333E-05
   2  norm          2.0697        1.1190       -.15549E-07   -.67567E-04
   3  Prefactor     7.6204        11.046        .57906E-07   -.16362E-03
   4  norm          .10000E-03    1.5448       -.58008E-07** at limit **
   5  Prefactor     .10000E-03    2.9943       -.14990E-07** at limit **
   6  Prefactor     .10000E-03    31.906       -.74582E-06** at limit **
   7  Prefactor     .10000E-03    12.701        .34308E-05** at limit **
   8  Prefactor     1.0796        .23181        .76042E-08   -.75149E-03
   9  Prefactor     9.5200        8.8992        .40880E-07   -.81324E-05
  10  norm          2.9444        1.3704        .12951E-07    .38667E-03
  11  Prefactor     .10017E-03    15.902       -.81879E-06** at limit **
  12  norm          2.7491        1.6923       -.27547E-07   -.12498E-03
  13  Prefactor     .10000E-03    13.471       -.44261E-05** at limit **
  14  Prefactor     4.4565        12.017       -.17372E-06   -.32125E-03
  15  Prefactor     28.523        20.060       -.96350E-05   -.30908E-03
  16  Prefactor     .29232E-01    .94060E-01    .40603E-06   -.25812E-03
  17  Prefactor     .10000E-03    8.4837        .16530E-06** at limit **
  18  Prefactor     10.813        8.2924        .17937E-06   -.22274E-03
  19  Prefactor     .10000E-03    5.2431        .34456E-07** at limit **
  20  Prefactor     1.1861        4.1843        .76913E-06   -.74193E-03
  21  Prefactor     .10000E-03    16.293        .12425E-05** at limit **
  22  Prefactor     .64659        3.3464       -.16969E-05    .88327E-03
  23  Prefactor     .10000E-03    23.326        .22040E-06** at limit **
  24  Normalizat    .86703        .21135        .99158E-06   -.49308E-04
  25  Prefactor     1.0225        .11252        .65734E-07   -.18709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.268
  norm       = 2.06969
  Prefactor  = 7.6204
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07963
  Prefactor  = 9.51998
  norm       = 2.94439
  Prefactor  = 0.000100166
  norm       = 2.74906
  Prefactor  = 0.0001
  Prefactor  = 4.45652
  Prefactor  = 28.5226
  Prefactor  = 0.0292319
  Prefactor  = 0.0001
  Prefactor  = 10.8134
  Prefactor  = 0.0001
  Prefactor  = 1.18605
  Prefactor  = 0.0001
  Prefactor  = 0.646585
  Prefactor  = 0.0001
  Normalizat = 0.867031
  Prefactor  = 1.02251
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.974     FROM HESSE     STATUS=OK           439 CALLS     3367 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.268        45.372        .71649E-04   -1.4589    
   2  norm          2.0697        1.1166        .65967E-04   -1.5420    
   3  Prefactor     7.6204        11.089        .72632E-03   -1.5156    
   4  norm          .10000E-03    1.5517        .10648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9988        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0796        .23207        .18805E-04   -1.5500    
   9  Prefactor     9.5200        8.9066        .12988E-03   -1.5091    
  10  norm          2.9444        1.3713        .64509E-04   -1.5365    
  11  Prefactor     .10017E-03    18.630        .10322       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7491        1.6916        .84943E-04   -1.5376    
  13  Prefactor     .10000E-03    13.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4565        12.247        .95379E-03   -1.5286    
  15  Prefactor     28.523        20.157        .75034E-04   -1.4639    
  16  Prefactor     .29232E-01    .11684        .42158E-03   -1.5674    
  17  Prefactor     .10000E-03    8.5642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.813        8.2151        .12187E-03   -1.5050    
  19  Prefactor     .10000E-03    5.2527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1861        27.836        .20930E-02   -1.5490    
  21  Prefactor     .10000E-03    16.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .64659        15.500        .28947E-02   -1.5547    
  23  Prefactor     .10000E-03    23.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86703        .24253        .34848E-03   -.97628    
  25  Prefactor     1.0225        .13098        .18365E-03   -.91983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53429e-08
Minuit parameter uncertainties:
  1  45.4217
  2  1.1166
  3  11.092
  4  1.37291e-06
  5  4.79625e-07
  6  1.07122e-05
  7  3.04795e-05
  8  0.232075
  9  8.90787
  10  1.37131
  11  0.00351767
  12  1.69158
  13  7.53911e-06
  14  12.2538
  15  20.1619
  16  0.116686
  17  7.38022e-06
  18  8.21596
  19  4.48563e-06
  20  11.4972
  21  6.97814e-06
  22  6.33293
  23  8.52234e-05
  24  0.242835
  25  0.131018
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.457e+00  1.225e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.023e+00  1.310e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.670e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477473/likelihoodResults_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.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) = 7697.44512494
delta logL = 0.528714585629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7697.00728662
delta logL = 0.966552906089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5424       1.0000          .0000       10.000    
     3 'Normalizat'    .76357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7697.007     FROM MIGRAD    STATUS=CONVERGED    224 CALLS      557 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21031E-02    .34699E-03** at limit **
   2  Index         7.5420        1.9334        .13194        .21053E-03
   3  Normalizat    .76319        .47088E-01    .83438E-01    .38391E-04
   4  Prefactor     1.0641        .26354E-01    .39161E-01   -.43976E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.54199
  Normalizat = 0.763186
  Prefactor  = 1.06409
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.007     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      598 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19329E-01    .15607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5420        3.4664        .48035E-02    .53332    
   3  Normalizat    .76319        .11795        .36948E-03   -1.0145    
   4  Prefactor     1.0641        .66390E-01    .18045E-03   -.90623    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67525e-09
Minuit parameter uncertainties:
  1  2.21442e-08
  2  4.02925
  3  0.11799
  4  0.0663948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477473': 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) = 7697.00727925
delta logL = 0.966560272251

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.214e-08  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  7.542e+00  4.029e+00  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.064e+00  6.639e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.632e-01  1.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 342.246 21.116
Photon Index (Free Index): 7.54 +/- 4.03
Photon Flux (Free Index): 8.13e-08 +/- 8.08e-07
Energy Flux (Free Index): 9.55e-06 +/- 9.43e-05

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/477473/cmap_HighResolution_256953601_257212801_4FGL_J2248.9+2106_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', comment='SUCCESS', energy_flux2='9.55e-06', dlogl='9.67e-01', photon_flux2='8.13e-08', job_status='DONE', time_completed='2021-09-28 21:06:45.916729', photon_index_error2='4.03', photon_index2='7.54', ts='0.16', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='9.43e-05', EG='0.87', time_epoch_completed='1632888405.92', return_code='0', job_id='477473', GAL2='1.06', EG2='0.76', return_code2='102', photon_flux_error2='8.08e-07', ts2='2.32', photon_index='2.30' WHERE bin_id='68' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 477473: <4FGL_J2248.9+2106_daily_bin68> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin68> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 20:50:20 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:50:21 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:50:21 2021
Terminated at Tue Sep 28 21:06:46 2021
Results reported at Tue Sep 28 21:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin68 342.246 21.1159 256953601 257212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.9+2106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

