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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1239
RA = 342.246, Dec = 21.1159
tmin = 560476801, tmax = 560736001
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='483394', job_status='RUN', time_executed='2021-09-28 21:13:23.108081', time_epoch_executed='1632888803.11' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483394

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483394/ft1_4FGL_J2248.9+2106_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483394/ft2_4FGL_J2248.9+2106_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483394/ft1_4FGL_J2248.9+2106_daily_bin1239.fits outfile=/scratch/kocevski/483394/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1239.fits ra=342.246 dec=21.1159 rad=12.0 tmin=560476801.0 tmax=560736001.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.76
user 3.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483394/ft2_4FGL_J2248.9+2106_daily_bin1239.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/483394/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/483394/ft1_filtered_4FGL_J2248.9+2106_daily_bin1239.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483394/ft1_filtered_4FGL_J2248.9+2106_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/483394/ft2_4FGL_J2248.9+2106_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/483394/ltcube_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.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/483394/ft2_4FGL_J2248.9+2106_daily_bin1239.fits
.....................!
real 11.59
user 11.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483394/ft1_filtered_4FGL_J2248.9+2106_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/483394/ft2_4FGL_J2248.9+2106_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/483394/ltcube_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.fits outfile=/scratch/kocevski/483394/expmap_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.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/483394/ltcube_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.fits
.....................!
real 189.95
user 184.61
sys 5.02

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/483394/ft1_filtered_4FGL_J2248.9+2106_daily_bin1239.fits scfile=/scratch/kocevski/483394/ft2_4FGL_J2248.9+2106_daily_bin1239.fits outfile=/scratch/kocevski/483394/cmap_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483394/ft1_filtered_4FGL_J2248.9+2106_daily_bin1239.fits scfile=/scratch/kocevski/483394/ft2_4FGL_J2248.9+2106_daily_bin1239.fits outfile=/scratch/kocevski/483394/cmap_HighResolution_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.545       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.434       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3585       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8677       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.742       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.135       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.474       1.0000         .10000E-03   10000.    
    12 'norm      '    6.8657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.054       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11278E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4866       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.558       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3080       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3975       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63935       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=   5031.570     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     3321 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.481        71.413       -.11734E-03    .11264E-04
   2  norm          .10000E-03    .68269        .16933E-06** at limit **
   3  Prefactor     17.437        16.733       -.98190E-06    .34839E-04
   4  norm          1.3586        3.2312       -.42207E-06   -.43512E-03
   5  Prefactor     9.8651        9.9899        .22510E-05    .36219E-04
   6  Prefactor     24.718        188.10       -.47885E-04    .80335E-05
   7  Prefactor     .10000E-03    12.779        .31518E-05** at limit **
   8  Prefactor     .60665        .28741       -.11447E-06    .85377E-04
   9  Prefactor     15.134        15.939        .34923E-06   -.14163E-04
  10  norm          1.2839        1.6863       -.13177E-06   -.29300E-03
  11  Prefactor     35.476        37.760        .15854E-08    .27972E-04
  12  norm          6.8644        3.5356       -.18159E-06    .82161E-03
  13  Prefactor     41.052        47.073       -.28708E-05    .92555E-05
  14  Prefactor     .10009E-03    17.943       -.34707E-05** at limit **
  15  Prefactor     .10000E-03    8.8186        .84699E-05** at limit **
  16  Prefactor     2.4866        .36850       -.63372E-07    .23775E-02
  17  Prefactor     11.548        19.935        .85326E-05    .18004E-03
  18  Prefactor     .10000E-03    7.9348       -.49958E-05** at limit **
  19  Prefactor     .10000E-03    4.7788       -.10445E-06** at limit **
  20  Prefactor     51.374        36.399       -.14413E-04   -.11967E-04
  21  Prefactor     5.3283        49.238        .37572E-04    .63118E-05
  22  Prefactor     .10000E-03    8.8846        .59760E-05** at limit **
  23  Prefactor     .10000E-03    9.8401       -.13053E-04** at limit **
  24  Normalizat    1.3979        .28958        .52816E-05    .59518E-04
  25  Prefactor     .63917        .14686        .21718E-05    .21669E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4809
  norm       = 0.0001
  Prefactor  = 17.4373
  norm       = 1.35856
  Prefactor  = 9.86507
  Prefactor  = 24.7178
  Prefactor  = 0.0001
  Prefactor  = 0.606654
  Prefactor  = 15.1337
  norm       = 1.28386
  Prefactor  = 35.4755
  norm       = 6.86437
  Prefactor  = 41.0515
  Prefactor  = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 2.48664
  Prefactor  = 11.5484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3741
  Prefactor  = 5.32834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39787
  Prefactor  = 0.639175
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.570     FROM HESSE     STATUS=OK           431 CALLS     3752 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.481        71.430        .84360E-04   -1.4759    
   2  norm          .10000E-03    .70917        .11439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.437        16.733        .95921E-04   -1.4873    
   4  norm          1.3586        3.1736        .19135E-03   -1.5475    
   5  Prefactor     9.8651        9.9942        .12756E-03   -1.5080    
   6  Prefactor     24.718        187.43        .80532E-04   -1.4713    
   7  Prefactor     .10000E-03    12.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .60665        .28648        .24495E-04   -1.5552    
   9  Prefactor     15.134        15.975        .10295E-03   -1.4930    
  10  norm          1.2839        1.6385        .94647E-04   -1.5481    
  11  Prefactor     35.476        37.509        .67285E-04   -1.4516    
  12  norm          6.8644        3.4501        .90305E-04   -1.5184    
  13  Prefactor     41.052        47.208        .62562E-04   -1.4426    
  14  Prefactor     .10009E-03    100.53        .54871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4866        .37102        .15278E-04   -1.5393    
  17  Prefactor     11.548        19.658        .11784E-03   -1.5028    
  18  Prefactor     .10000E-03    8.0275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7818        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.374        36.496        .55945E-04   -1.4273    
  21  Prefactor     5.3283        48.957        .17445E-03   -1.5246    
  22  Prefactor     .10000E-03    9.0025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.8702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3979        .33641        .31897E-03   -.80690    
  25  Prefactor     .63917        .17035        .23643E-03   -1.0596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53666e-09
Minuit parameter uncertainties:
  1  71.7037
  2  1.32719e-05
  3  16.7376
  4  3.17401
  5  9.99585
  6  136.729
  7  1.65796e-05
  8  0.286483
  9  15.9797
  10  1.63855
  11  37.534
  12  3.45018
  13  47.251
  14  0.00598751
  15  6.91842e-06
  16  0.371023
  17  19.669
  18  3.36468e-05
  19  8.00408e-06
  20  36.5119
  21  32.3369
  22  9.9126e-05
  23  2.04737e-05
  24  0.336941
  25  0.170489
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.001e-04  5.988e-03  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:  6.392e-01  1.705e-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.398e+00  3.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483394/likelihoodResults_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.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) = 5031.56988395
delta logL = -4.64196118628e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5031.56988394
delta logL = -4.64059839942e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2980       1.0000          .0000       10.000    
     3 'Normalizat'    1.3979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63918       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=   5031.126     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      275 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67831        17.293        .90713E-02    .10447E-02
   2  Index         3.9415        3.1496        .10167        .14797E-03
   3  Normalizat    1.3102        .69182E-01    .73943E-01    .70711E-04
   4  Prefactor     .66492        .36181E-01    .41586E-01    .14098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.67831
  Index      = 3.94152
  Normalizat = 1.31017
  Prefactor  = 0.664922
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.126     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 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     .67831        45.169        .65674E-04   -1.5543    
   2  Index         3.9415        6.9659        .55273E-02   -.21331    
   3  Normalizat    1.3102        .29044        .32723E-03   -.83263    
   4  Prefactor     .66492        .15028        .23197E-03   -1.0492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.5454e-10
Minuit parameter uncertainties:
  1  11.0784
  2  6.93762
  3  0.290798
  4  0.150372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483394': 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) = 5031.12600116
delta logL = 0.443836369556

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.783e-01  1.108e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.942e+00  6.938e+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:  6.649e-01  1.504e-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.310e+00  2.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.246 21.116

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/483394/cmap_HighResolution_560476801_560736001_4FGL_J2248.9+2106_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-28 21:24:15.183723', job_id='483394', GAL2='0.66', fit_tolerance='1e-08', EG2='1.31', EG='1.40', time_epoch_completed='1632889455.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='4.44e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1239' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:24:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 483394: <4FGL_J2248.9+2106_daily_bin1239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1239 342.246 21.1159 560476801 560736001 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 :                                   646.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

