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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1365
RA = 342.246, Dec = 21.1159
tmin = 593136001, tmax = 593395201
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='483597', job_status='RUN', time_executed='2021-09-28 21:14:25.014059', time_epoch_executed='1632888865.01' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483597/ft1_4FGL_J2248.9+2106_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483597/ft2_4FGL_J2248.9+2106_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483597/ft1_4FGL_J2248.9+2106_daily_bin1365.fits outfile=/scratch/kocevski/483597/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1365.fits ra=342.246 dec=21.1159 rad=12.0 tmin=593136001.0 tmax=593395201.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 5.17
user 4.93
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483597/ft2_4FGL_J2248.9+2106_daily_bin1365.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/483597/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1365.fits evtable="EVENTS" outfile="/scratch/kocevski/483597/ft1_filtered_4FGL_J2248.9+2106_daily_bin1365.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/483597/ft1_filtered_4FGL_J2248.9+2106_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/483597/ft2_4FGL_J2248.9+2106_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/483597/ltcube_593136001_593395201_4FGL_J2248.9+2106_daily_bin1365.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/483597/ft2_4FGL_J2248.9+2106_daily_bin1365.fits
.....................!
real 11.66
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483597/ft1_filtered_4FGL_J2248.9+2106_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/483597/ft2_4FGL_J2248.9+2106_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/483597/ltcube_593136001_593395201_4FGL_J2248.9+2106_daily_bin1365.fits outfile=/scratch/kocevski/483597/expmap_593136001_593395201_4FGL_J2248.9+2106_daily_bin1365.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/483597/ltcube_593136001_593395201_4FGL_J2248.9+2106_daily_bin1365.fits
.....................!
real 190.49
user 185.35
sys 4.77

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/483597/ft1_filtered_4FGL_J2248.9+2106_daily_bin1365.fits scfile=/scratch/kocevski/483597/ft2_4FGL_J2248.9+2106_daily_bin1365.fits outfile=/scratch/kocevski/483597/cmap_593136001_593395201_4FGL_J2248.9+2106_daily_bin1365.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483597/ft1_filtered_4FGL_J2248.9+2106_daily_bin1365.fits scfile=/scratch/kocevski/483597/ft2_4FGL_J2248.9+2106_daily_bin1365.fits outfile=/scratch/kocevski/483597/cmap_HighResolution_593136001_593395201_4FGL_J2248.9+2106_daily_bin1365.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .76974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2035       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.475       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    133.46       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.373       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20587E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.086       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2769       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4369       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71706       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=   7042.596     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2945 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    107.55        .41588E-06** at limit **
   2  norm          .76981        .94418       -.39100E-06   -.61777E-03
   3  Prefactor     .10000E-03    11.218       -.15952E-06** at limit **
   4  norm          .10000E-03    1.4754        .16156E-07** at limit **
   5  Prefactor     .10000E-03    20.016        .48822E-06** at limit **
   6  Prefactor     .10000E-03    149.87       -.73224E-06** at limit **
   7  Prefactor     .10000E-03    16.532        .14956E-07** at limit **
   8  Prefactor     .12104        .18463       -.27789E-06   -.26162E-03
   9  Prefactor     .10000E-03    5.8582        .25278E-06** at limit **
  10  norm          4.2034        1.6843       -.14727E-06    .30372E-03
  11  Prefactor     14.476        21.340        .20701E-07    .12397E-04
  12  norm          .10000E-03    1.6623       -.66470E-07** at limit **
  13  Prefactor     23.842        31.572        .25040E-06    .99513E-05
  14  Prefactor     133.47        24.484        .89943E-07    .21939E-04
  15  Prefactor     32.376        25.424        .21345E-06    .15209E-04
  16  Prefactor     .68639        .21403        .17539E-07    .39384E-03
  17  Prefactor     .10000E-03    3.1134       -.23071E-07** at limit **
  18  Prefactor     .10000E-03    7.7006       -.24046E-06** at limit **
  19  Prefactor     .10000E-03    89.038        .60287E-05** at limit **
  20  Prefactor     19.082        27.560       -.16085E-05    .55966E-04
  21  Prefactor     .10000E-03    49.209       -.13248E-05** at limit **
  22  Prefactor     2.2746        8.8913       -.86111E-06    .19628E-04
  23  Prefactor     .10000E-03    26.663        .55419E-07** at limit **
  24  Normalizat    1.4370        .26010        .14104E-05    .56594E-04
  25  Prefactor     .71698        .12901       -.91230E-06    .26473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.769811
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.121045
  Prefactor  = 0.0001
  norm       = 4.2034
  Prefactor  = 14.4761
  norm       = 0.0001
  Prefactor  = 23.8422
  Prefactor  = 133.468
  Prefactor  = 32.376
  Prefactor  = 0.686385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0817
  Prefactor  = 0.0001
  Prefactor  = 2.27464
  Prefactor  = 0.0001
  Normalizat = 1.43695
  Prefactor  = 0.716977
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.596     FROM HESSE     STATUS=OK           431 CALLS     3376 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76981        .86892        .91266E-03   -1.5532    
   3  Prefactor     .10000E-03    11.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4771        .99547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    149.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12104        .17959        .43474E-03   -1.5638    
   9  Prefactor     .10000E-03    5.8758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2034        1.6814        .63695E-04   -1.5298    
  11  Prefactor     14.476        21.339        .10528E-03   -1.4947    
  12  norm          .10000E-03    1.7309        .21082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.842        31.620        .82037E-04   -1.4731    
  14  Prefactor     133.47        24.438        .34858E-04   -1.3392    
  15  Prefactor     32.376        25.472        .70425E-04   -1.4569    
  16  Prefactor     .68639        .21434        .19896E-04   -1.5542    
  17  Prefactor     .10000E-03    3.1154        .14461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    84.744        .47868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.082        27.460        .91679E-04   -1.4834    
  21  Prefactor     .10000E-03    49.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2746        8.9092        .13606E-02   -1.5406    
  23  Prefactor     .10000E-03    26.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4370        .30410        .32532E-03   -.79566    
  25  Prefactor     .71698        .15055        .22533E-03   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94768e-09
Minuit parameter uncertainties:
  1  0.000123706
  2  0.868935
  3  1.26218e-05
  4  1.24285e-06
  5  0.000102747
  6  0.000479835
  7  1.84874e-05
  8  0.179593
  9  1.37995e-05
  10  1.68142
  11  21.3499
  12  2.43664e-06
  13  31.642
  14  24.44
  15  25.4807
  16  0.214336
  17  1.74036e-06
  18  2.91136e-06
  19  0.000162536
  20  27.4786
  21  9.55544e-05
  22  8.91436
  23  1.24789e-05
  24  0.304482
  25  0.150634
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.335e+02  2.444e+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:  7.170e-01  1.506e-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.437e+00  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 113.16
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.66e-07 +/- 8.54e-08
Energy Flux (Fixed Index): 1.77e-04 +/- 3.24e-05

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) = 7035.39235038
delta logL = 7.20327153592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7035.3828751
delta logL = 7.2127468145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    215.58       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7500       1.0000          .0000       10.000    
     3 'Normalizat'    1.5831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66884       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=   7035.383     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     215.58        41.713        .40963E-05   -.73624E-03
   2  Index         1.7500        .12537       -.24690E-05   -.11980E-02
   3  Normalizat    1.5830        .24735        .19034E-06    .37666E-04
   4  Prefactor     .66895        .12526       -.42601E-06    .53924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 215.581
  Index      = 1.75001
  Normalizat = 1.58303
  Prefactor  = 0.668952
 **********
 **   18 **HESSE 
 **********

 FCN=   7035.383     FROM HESSE     STATUS=OK            27 CALLS      240 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     215.58        42.028        .13771E-03   -1.2761    
   2  Index         1.7500        .13484        .27392E-03   -.70758    
   3  Normalizat    1.5830        .29533        .31363E-03   -.75471    
   4  Prefactor     .66895        .14958        .23249E-03   -1.0476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91545e-09
Minuit parameter uncertainties:
  1  42.0338
  2  0.134863
  3  0.295652
  4  0.149672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483597': 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) = 7035.38287442
delta logL = 7.21274748845

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.156e+02  4.203e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.750e+00  1.349e-01  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:  6.690e-01  1.497e-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.583e+00  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 127.67
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.75 +/- 0.13
Photon Flux (Free Index): 3.01e-07 +/- 7.22e-08
Energy Flux (Free Index): 4.20e-04 +/- 1.40e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/483597/cmap_HighResolution_593136001_593395201_4FGL_J2248.9+2106_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.66e-07', energy_flux2='4.20e-04', photon_flux_error='8.54e-08', dlogl='7.21e+00', energy_flux='1.77e-04', photon_flux2='3.01e-07', job_status='DONE', time_completed='2021-09-28 21:25:38.000369', photon_index_error2='0.13', photon_index2='1.75', ts='113.16', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.40e-04', EG='1.44', time_epoch_completed='1632889538.0', return_code='0', job_id='483597', GAL2='0.67', EG2='1.58', return_code2='0', energy_flux_error='3.24e-05', photon_flux_error2='7.22e-08', ts2='127.67', photon_index='2.30' WHERE bin_id='1365' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:25:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 483597: <4FGL_J2248.9+2106_daily_bin1365> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1365> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:10:32 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:10:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:10:34 2021
Terminated at Tue Sep 28 21:25:38 2021
Results reported at Tue Sep 28 21:25:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1365 342.246 21.1159 593136001 593395201 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

