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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1343
RA = 342.246, Dec = 21.1159
tmin = 587433601, tmax = 587692801
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='483558', job_status='RUN', time_executed='2021-09-28 21:13:55.285574', time_epoch_executed='1632888835.29' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483558

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483558/ft1_4FGL_J2248.9+2106_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483558/ft2_4FGL_J2248.9+2106_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483558/ft1_4FGL_J2248.9+2106_daily_bin1343.fits outfile=/scratch/kocevski/483558/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1343.fits ra=342.246 dec=21.1159 rad=12.0 tmin=587433601.0 tmax=587692801.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.57
user 3.37
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483558/ft1_filtered_4FGL_J2248.9+2106_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/483558/ft2_4FGL_J2248.9+2106_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/483558/ltcube_587433601_587692801_4FGL_J2248.9+2106_daily_bin1343.fits outfile=/scratch/kocevski/483558/expmap_587433601_587692801_4FGL_J2248.9+2106_daily_bin1343.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/483558/ltcube_587433601_587692801_4FGL_J2248.9+2106_daily_bin1343.fits
.....................!
real 189.88
user 185.28
sys 4.25

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/483558/ft1_filtered_4FGL_J2248.9+2106_daily_bin1343.fits scfile=/scratch/kocevski/483558/ft2_4FGL_J2248.9+2106_daily_bin1343.fits outfile=/scratch/kocevski/483558/cmap_587433601_587692801_4FGL_J2248.9+2106_daily_bin1343.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483558/ft1_filtered_4FGL_J2248.9+2106_daily_bin1343.fits scfile=/scratch/kocevski/483558/ft2_4FGL_J2248.9+2106_daily_bin1343.fits outfile=/scratch/kocevski/483558/cmap_HighResolution_587433601_587692801_4FGL_J2248.9+2106_daily_bin1343.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.425       1.0000         .10000E-03   10000.    
     2 'norm      '    .58232       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.673       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9752       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16507E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3040       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80118       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7265       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.674       1.0000         .10000E-03   10000.    
    14 'Prefactor '    174.17       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2734       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.090       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1661       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.572       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63950       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0679       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=   8893.898     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3000 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.444        71.959        .14568E-04    .95624E-04
   2  norm          .58157        .85751       -.93622E-07   -.10945E-02
   3  Prefactor     35.675        17.830       -.95772E-06   -.43732E-04
   4  norm          8.9756        5.0241        .46147E-07    .16723E-05
   5  Prefactor     .10000E-03    9.2557        .36612E-06** at limit **
   6  Prefactor     .10000E-03    34.779        .13172E-06** at limit **
   7  Prefactor     8.3039        8.5418       -.15416E-07   -.76537E-05
   8  Prefactor     .80126        .23930       -.29387E-07   -.95735E-03
   9  Prefactor     .10000E-03    4.6265       -.29843E-08** at limit **
  10  norm          3.7266        1.1842        .25520E-07   -.13489E-04
  11  Prefactor     .10000E-03    4.7075        .66524E-07** at limit **
  12  norm          1.5784        1.5122       -.22957E-08    .63124E-04
  13  Prefactor     22.674        22.307        .68909E-07   -.86867E-07
  14  Prefactor     174.17        24.365       -.79311E-07   -.27485E-04
  15  Prefactor     .10000E-03    14.685       -.25620E-06** at limit **
  16  Prefactor     1.1053        .20560        .13032E-08   -.19041E-03
  17  Prefactor     5.2333        6.1148        .11905E-06    .67303E-05
  18  Prefactor     3.2710        2.8250        .65004E-06   -.22172E-02
  19  Prefactor     .10000E-03    10.265       -.22844E-06** at limit **
  20  Prefactor     32.086        24.567       -.89432E-07   -.16237E-04
  21  Prefactor     .10000E-03    10.769        .84115E-09** at limit **
  22  Prefactor     4.1655        5.2680        .39529E-08   -.73094E-04
  23  Prefactor     12.572        14.826        .18243E-06   -.10430E-03
  24  Normalizat    .63987        .24741       -.10215E-05   -.42451E-04
  25  Prefactor     1.0677        .12795       -.28550E-06   -.16135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.4436
  norm       = 0.58157
  Prefactor  = 35.6752
  norm       = 8.97564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.30387
  Prefactor  = 0.801261
  Prefactor  = 0.0001
  norm       = 3.72664
  Prefactor  = 0.0001
  norm       = 1.57836
  Prefactor  = 22.6737
  Prefactor  = 174.166
  Prefactor  = 0.0001
  Prefactor  = 1.1053
  Prefactor  = 5.23334
  Prefactor  = 3.27095
  Prefactor  = 0.0001
  Prefactor  = 32.0859
  Prefactor  = 0.0001
  Prefactor  = 4.16554
  Prefactor  = 12.5721
  Normalizat = 0.639868
  Prefactor  = 1.06773
 **********
 **   18 **HESSE 
 **********

 FCN=   8893.898     FROM HESSE     STATUS=OK           443 CALLS     3443 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.444        72.099        .48524E-04   -1.4051    
   2  norm          .58157        .72554        .10292E-02   -1.5555    
   3  Prefactor     35.675        17.830        .67098E-04   -1.4513    
   4  norm          8.9756        5.0185        .13379E-03   -1.5109    
   5  Prefactor     .10000E-03    9.6527        .87942E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3039        8.5365        .13912E-03   -1.5132    
   8  Prefactor     .80126        .23913        .23765E-04   -1.5529    
   9  Prefactor     .10000E-03    4.6309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7266        1.1841        .55718E-04   -1.5322    
  11  Prefactor     .10000E-03    4.7095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5784        1.5222        .10930E-03   -1.5457    
  13  Prefactor     22.674        22.334        .84119E-04   -1.4755    
  14  Prefactor     174.17        24.283        .30576E-04   -1.3061    
  15  Prefactor     .10000E-03    14.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1053        .20629        .17354E-04   -1.5498    
  17  Prefactor     5.2333        6.1117        .17571E-03   -1.5250    
  18  Prefactor     3.2710        6.6385        .11191E-02   -1.5346    
  19  Prefactor     .10000E-03    10.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.086        24.567        .70734E-04   -1.4574    
  21  Prefactor     .10000E-03    10.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1655        5.2483        .19746E-03   -1.5300    
  23  Prefactor     12.572        14.823        .56486E-03   -1.4999    
  24  Normalizat    .63987        .26559        .45723E-03   -1.0632    
  25  Prefactor     1.0677        .14024        .20100E-03   -.90505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67277e-09
Minuit parameter uncertainties:
  1  72.1914
  2  0.725552
  3  17.8331
  4  5.01872
  5  2.89711e-05
  6  1.8104e-05
  7  8.53776
  8  0.239133
  9  2.26422e-06
  10  1.1841
  11  2.00833e-06
  12  1.52227
  13  22.3424
  14  24.2848
  15  3.49015e-06
  16  0.206286
  17  6.11239
  18  6.63998
  19  7.42979e-06
  20  24.5748
  21  7.1169e-06
  22  5.24888
  23  14.8271
  24  0.266123
  25  0.14029
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.742e+02  2.428e+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.068e+00  1.403e-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:  6.399e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 174.20
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.09e-07 +/- 8.48e-08
Energy Flux (Fixed Index): 2.31e-04 +/- 3.22e-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) = 8892.23919302
delta logL = 1.65902634375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8892.23222817
delta logL = 1.6659911861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    232.81       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0700       1.0000          .0000       10.000    
     3 'Normalizat'    .71967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0372       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=   8892.232     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      252 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     232.81        127.05        .66316E-03    .75801E-03
   2  Index         2.0700        .33844        .43173E-01    .80520E-04
   3  Normalizat    .71967        .24285        .97927E-01   -.21332E-03
   4  Prefactor     1.0372        .12933        .40727E-01   -.61564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 232.81
  Index      = 2.07001
  Normalizat = 0.719667
  Prefactor  = 1.03715
 **********
 **   18 **HESSE 
 **********

 FCN=   8892.232     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     232.81        44.579        .26526E-04   -1.2644    
   2  Index         2.0700        .11985        .18893E-03   -.62611    
   3  Normalizat    .71967        .25280        .43396E-03   -1.0312    
   4  Prefactor     1.0372        .13926        .20361E-03   -.91501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41836e-10
Minuit parameter uncertainties:
  1  44.5853
  2  0.11987
  3  0.253211
  4  0.139308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483558': 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) = 8892.2322281
delta logL = 1.66599126398

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.328e+02  4.459e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.070e+00  1.199e-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:  1.037e+00  1.393e-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:  7.197e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 176.56
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.07 +/- 0.12
Photon Flux (Free Index): 5.38e-07 +/- 8.60e-08
Energy Flux (Free Index): 3.15e-04 +/- 7.50e-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/483558/cmap_HighResolution_587433601_587692801_4FGL_J2248.9+2106_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.09e-07', energy_flux2='3.15e-04', photon_flux_error='8.48e-08', dlogl='1.67e+00', energy_flux='2.31e-04', photon_flux2='5.38e-07', job_status='DONE', time_completed='2021-09-28 21:26:46.917686', photon_index_error2='0.12', photon_index2='2.07', ts='174.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='7.50e-05', EG='0.64', time_epoch_completed='1632889606.92', return_code='0', job_id='483558', GAL2='1.04', EG2='0.72', return_code2='0', energy_flux_error='3.22e-05', photon_flux_error2='8.60e-08', ts2='176.56', photon_index='2.30' WHERE bin_id='1343' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:26:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 483558: <4FGL_J2248.9+2106_daily_bin1343> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1343> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:10:30 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:10:31 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:31 2021
Terminated at Tue Sep 28 21:26:47 2021
Results reported at Tue Sep 28 21:26:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1343 342.246 21.1159 587433601 587692801 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 :                                   756.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            977 sec.

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

