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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1643
RA = 342.246, Dec = 21.1159
tmin = 665193601, tmax = 665452801
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='496614', job_status='RUN', time_executed='2022-02-02 00:37:59.356996', time_epoch_executed='1643791079.36' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496614/ft1_4FGL_J2248.9+2106_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496614/ft1_4FGL_J2248.9+2106_daily_bin1643.fits outfile=/scratch/kocevski/496614/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1643.fits ra=342.246 dec=21.1159 rad=12.0 tmin=665193601.0 tmax=665452801.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.61
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.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/496614/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1643.fits evtable="EVENTS" outfile="/scratch/kocevski/496614/ft1_filtered_4FGL_J2248.9+2106_daily_bin1643.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496614/ft1_filtered_4FGL_J2248.9+2106_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/496614/ltcube_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.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/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits
.....................!
real 12.06
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496614/ft1_filtered_4FGL_J2248.9+2106_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/496614/ltcube_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.fits outfile=/scratch/kocevski/496614/expmap_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.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/496614/ltcube_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.fits
.....................!
real 191.04
user 185.01
sys 5.67

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/496614/ft1_filtered_4FGL_J2248.9+2106_daily_bin1643.fits scfile=/scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits outfile=/scratch/kocevski/496614/cmap_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496614/ft1_filtered_4FGL_J2248.9+2106_daily_bin1643.fits scfile=/scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits outfile=/scratch/kocevski/496614/cmap_HighResolution_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496614/ft1_filtered_4FGL_J2248.9+2106_daily_bin1643.fits', '/scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits', expMap='/scratch/kocevski/496614/expmap_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.fits', expCube='/scratch/kocevski/496614/ltcube_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496614/Model_4FGL_J2248.9+2106_daily_bin1643.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/496614/ft1_filtered_4FGL_J2248.9+2106_daily_bin1643.fits
Spacecraft file(s): /scratch/kocevski/496614/ft2_4FGL_J2248.9+2106_daily_bin1643.fits
Exposure map: /scratch/kocevski/496614/expmap_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.fits
Exposure cube: /scratch/kocevski/496614/ltcube_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496614/Model_4FGL_J2248.9+2106_daily_bin1643.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) = 8052.44336658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.182       1.0000         .10000E-03   10000.    
     2 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15006E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8101       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4447       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.806       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1276       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52877       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1539       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .73916E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2741       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84554       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=   8052.396     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2504 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.146        38.090       -.64961E-05   -.61667E-03
   2  norm          .10000E-03    .35270       -.20966E-07** at limit **
   3  Prefactor     .10000E-03    29.568        .27872E-05** at limit **
   4  norm          1.7847        4.3026        .53346E-06   -.33275E-03
   5  Prefactor     .10000E-03    26.387       -.15132E-05** at limit **
   6  Prefactor     .10000E-03    40.384        .63693E-06** at limit **
   7  Prefactor     .10000E-03    5.4127       -.68096E-07** at limit **
   8  Prefactor     1.0838        .25036        .36171E-08    .15118E-03
   9  Prefactor     4.8101        8.7758        .12711E-06   -.15307E-04
  10  norm          3.4448        1.2069        .83519E-07   -.48384E-03
  11  Prefactor     18.806        15.162       -.26875E-08   -.85330E-05
  12  norm          2.1619        1.3711       -.21410E-06   -.10799E-03
  13  Prefactor     .10000E-03    8.9117       -.92123E-06** at limit **
  14  Prefactor     4.1262        9.4761        .66143E-05   -.71300E-03
  15  Prefactor     .10000E-03    7.6184       -.25060E-06** at limit **
  16  Prefactor     .52873        .15548       -.95997E-08   -.41785E-03
  17  Prefactor     .10000E-03    3.4708       -.60186E-07** at limit **
  18  Prefactor     .10000E-03    3.6962        .54237E-07** at limit **
  19  Prefactor     .10000E-03    9.8775        .60039E-06** at limit **
  20  Prefactor     .10000E-03    39.759        .96225E-06** at limit **
  21  Prefactor     .10000E-03    7.9533        .78826E-06** at limit **
  22  Prefactor     4.1524        4.5523        .79931E-06    .60647E-03
  23  Prefactor     .10001E-03    11.933        .71369E-07** at limit **
  24  Normalizat    1.2743        .20793       -.14126E-05   -.18669E-04
  25  Prefactor     .84549        .11150        .19753E-06   -.16501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.1464
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.78467
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08384
  Prefactor  = 4.81014
  norm       = 3.44479
  Prefactor  = 18.8056
  norm       = 2.16185
  Prefactor  = 0.0001
  Prefactor  = 4.12619
  Prefactor  = 0.0001
  Prefactor  = 0.528732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15237
  Prefactor  = 0.000100007
  Normalizat = 1.27429
  Prefactor  = 0.845485
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.396     FROM HESSE     STATUS=OK           427 CALLS     2931 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.146        40.891        .63234E-04   -1.4440    
   2  norm          .10000E-03    .61085        .10346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.844        .40941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7847        4.3051        .27909E-03   -1.5441    
   5  Prefactor     .10000E-03    27.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0838        .25030        .20688E-04   -1.5500    
   9  Prefactor     4.8101        8.7737        .18343E-03   -1.5269    
  10  norm          3.4448        1.2072        .27756E-03   -1.5337    
  11  Prefactor     18.806        15.165        .92359E-04   -1.4840    
  12  norm          2.1619        1.3753        .80781E-04   -1.5414    
  13  Prefactor     .10000E-03    8.9396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1262        10.045        .99206E-03   -1.5302    
  15  Prefactor     .10000E-03    7.6322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .52873        .15515        .18322E-04   -1.5563    
  17  Prefactor     .10000E-03    3.4840        .16326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7258        .16844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1524        4.5360        .19252E-03   -1.5300    
  23  Prefactor     .10001E-03    78.760        .59007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2743        .24616        .30607E-03   -.84337    
  25  Prefactor     .84549        .13274        .20142E-03   -.98073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49528e-09
Minuit parameter uncertainties:
  1  40.9193
  2  1.04926e-05
  3  0.000538989
  4  4.30584
  5  0.000241789
  6  0.000151767
  7  4.00467e-07
  8  0.250303
  9  8.77607
  10  1.20718
  11  15.1682
  12  1.37531
  13  0.000104751
  14  10.0495
  15  2.69602e-05
  16  0.155153
  17  6.36592e-06
  18  4.97007e-07
  19  6.46403e-05
  20  0.000149223
  21  8.19471e-05
  22  4.53642
  23  0.00147019
  24  0.246387
  25  0.132794
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.126e+00  1.005e+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:  8.455e-01  1.328e-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:  1.274e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496614/likelihoodResults_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.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) = 8051.9449618
delta logL = 0.450553970524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8051.93391889
delta logL = 0.461596877993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57688       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8032       1.0000          .0000       10.000    
     3 'Normalizat'    1.2213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86382       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=   8051.934     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      306 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58945        10.475        .11581E-01    .16602E-02
   2  Index         3.7939        2.6955        .10399        .23185E-03
   3  Normalizat    1.2214        .45633E-01    .70421E-01    .16219E-04
   4  Prefactor     .86379        .25105E-01    .44542E-01    .90768E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.589448
  Index      = 3.79385
  Normalizat = 1.22141
  Prefactor  = 0.863788
 **********
 **   18 **HESSE 
 **********

 FCN=   8051.934     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      341 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58945        30.493        .70071E-03   -1.5554    
   2  Index         3.7939        6.8960        .63733E-02   -.24363    
   3  Normalizat    1.2214        .17323        .31159E-03   -.85944    
   4  Prefactor     .86379        .94360E-01    .19945E-03   -.97418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.52472e-10
Minuit parameter uncertainties:
  1  8.48307
  2  6.31006
  3  0.173316
  4  0.0943781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496614': 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) = 8051.93390234
delta logL = 0.461613427735

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.894e-01  8.483e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.794e+00  6.310e+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:  8.638e-01  9.438e-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:  1.221e+00  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 342.246 21.116
Photon Index (Free Index): 3.79 +/- 6.31
Photon Flux (Free Index): 5.14e-08 +/- 5.07e-08
Energy Flux (Free Index): 7.99e-06 +/- 1.16e-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/496614/cmap_HighResolution_665193601_665452801_4FGL_J2248.9+2106_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', energy_flux2='7.99e-06', dlogl='4.62e-01', photon_flux2='5.14e-08', job_status='DONE', time_completed='2022-02-02 00:50:49.987931', photon_index_error2='6.31', photon_index2='3.79', ts='0.20', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.91e-08', energy_flux_error2='1.16e-05', EG='1.27', time_epoch_completed='1643791849.99', return_code='0', job_id='496614', GAL2='0.86', EG2='1.22', return_code2='102', photon_flux_error2='5.07e-08', ts2='1.18', photon_index='2.30' WHERE bin_id='1643' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:50:50 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 496614: <4FGL_J2248.9+2106_daily_bin1643> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1643> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Feb  2 00:35:55 2022
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:35:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:35:57 2022
Terminated at Wed Feb  2 00:50:50 2022
Results reported at Wed Feb  2 00:50:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1643 342.246 21.1159 665193601 665452801 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 :                                   772.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

