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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1008
RA = 342.246, Dec = 21.1159
tmin = 500601601, tmax = 500860801
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='480948', job_status='RUN', time_executed='2021-09-28 21:03:26.684563', time_epoch_executed='1632888206.68' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480948/ft1_4FGL_J2248.9+2106_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480948/ft2_4FGL_J2248.9+2106_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480948/ft1_4FGL_J2248.9+2106_daily_bin1008.fits outfile=/scratch/kocevski/480948/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1008.fits ra=342.246 dec=21.1159 rad=12.0 tmin=500601601.0 tmax=500860801.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.18
user 4.91
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480948/ft1_filtered_4FGL_J2248.9+2106_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/480948/ft2_4FGL_J2248.9+2106_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/480948/ltcube_500601601_500860801_4FGL_J2248.9+2106_daily_bin1008.fits outfile=/scratch/kocevski/480948/expmap_500601601_500860801_4FGL_J2248.9+2106_daily_bin1008.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/480948/ltcube_500601601_500860801_4FGL_J2248.9+2106_daily_bin1008.fits
.....................!
real 189.86
user 184.42
sys 5.10

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/480948/ft1_filtered_4FGL_J2248.9+2106_daily_bin1008.fits scfile=/scratch/kocevski/480948/ft2_4FGL_J2248.9+2106_daily_bin1008.fits outfile=/scratch/kocevski/480948/cmap_500601601_500860801_4FGL_J2248.9+2106_daily_bin1008.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480948/ft1_filtered_4FGL_J2248.9+2106_daily_bin1008.fits scfile=/scratch/kocevski/480948/ft2_4FGL_J2248.9+2106_daily_bin1008.fits outfile=/scratch/kocevski/480948/cmap_HighResolution_500601601_500860801_4FGL_J2248.9+2106_daily_bin1008.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/480948/ft1_filtered_4FGL_J2248.9+2106_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/480948/ft2_4FGL_J2248.9+2106_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/480948/Model_4FGL_J2248.9+2106_daily_bin1008.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/480948/ft1_filtered_4FGL_J2248.9+2106_daily_bin1008.fits.....................!
real 75.00
user 73.63
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.361       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.186       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6702       1.0000         .10000E-03   10000.    
    10 'norm      '    6.0279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.6971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.635       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8770       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13577E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.971       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .36179E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .64539E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83958       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=   6636.233     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2877 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.974       -.48080E-08** at limit **
   2  norm          1.7326        1.3585        .16305E-07    .43732E-05
   3  Prefactor     .10000E-03    7.5144        .28627E-06** at limit **
   4  norm          .10000E-03    10.752       -.36310E-06** at limit **
   5  Prefactor     .10000E-03    45.821        .24160E-06** at limit **
   6  Prefactor     26.496        72.947        .23775E-05    .10856E-03
   7  Prefactor     11.862        17.008        .45426E-09    .74263E-06
   8  Prefactor     12.185        1.0090        .17599E-07    .21621E-03
   9  Prefactor     4.6967        30.328        .41259E-06    .13904E-04
  10  norm          6.0286        2.0233       -.38828E-07   -.59829E-04
  11  Prefactor     .10000E-03    33.772       -.48253E-06** at limit **
  12  norm          5.6969        3.1393       -.78888E-07   -.30934E-04
  13  Prefactor     47.667        42.052        .24181E-06    .72095E-04
  14  Prefactor     .10000E-03    14.622       -.45769E-06** at limit **
  15  Prefactor     .10000E-03    29.889       -.17248E-06** at limit **
  16  Prefactor     4.0170        .47195        .28785E-09    .55009E-03
  17  Prefactor     3.8827        11.879        .98891E-05    .23638E-03
  18  Prefactor     .10000E-03    18.107        .38439E-06** at limit **
  19  Prefactor     37.983        23.998        .23528E-06    .35792E-04
  20  Prefactor     5.3085        17.944       -.12621E-06   -.73021E-06
  21  Prefactor     .10000E-03    11.374        .25795E-07** at limit **
  22  Prefactor     .10004E-03    6.9298        .24767E-06** at limit **
  23  Prefactor     .10207E-03    25.088       -.49743E-05** at limit **
  24  Normalizat    1.1781        .30750       -.54307E-06    .20442E-03
  25  Prefactor     .83931        .15353       -.27661E-06    .28165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.73264
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4956
  Prefactor  = 11.8617
  Prefactor  = 12.1852
  Prefactor  = 4.69673
  norm       = 6.02859
  Prefactor  = 0.0001
  norm       = 5.69689
  Prefactor  = 47.6667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.017
  Prefactor  = 3.88273
  Prefactor  = 0.0001
  Prefactor  = 37.9829
  Prefactor  = 5.30848
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.000102073
  Normalizat = 1.17809
  Prefactor  = 0.839306
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.233     FROM HESSE     STATUS=OK           433 CALLS     3310 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7326        1.3562        .81753E-04   -1.5445    
   3  Prefactor     .10000E-03    7.5185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.496        72.905        .39012E-03   -1.4678    
   7  Prefactor     11.862        17.016        .11626E-03   -1.5019    
   8  Prefactor     12.185        1.0070        .11475E-04   -1.5010    
   9  Prefactor     4.6967        30.239        .18622E-03   -1.5274    
  10  norm          6.0286        2.0218        .64029E-04   -1.5217    
  11  Prefactor     .10000E-03    34.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.6969        3.1385        .10403E-03   -1.5231    
  13  Prefactor     47.667        42.100        .29049E-03   -1.4326    
  14  Prefactor     .10000E-03    14.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0170        .47378        .18054E-04   -1.5307    
  17  Prefactor     3.8827        11.949        .10246E-02   -1.5314    
  18  Prefactor     .10000E-03    18.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.983        24.014        .65043E-04   -1.4475    
  20  Prefactor     5.3085        17.941        .17455E-03   -1.5247    
  21  Prefactor     .10000E-03    11.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10004E-03    45.165        .39501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10207E-03    136.59        .69242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1781        .35192        .42577E-03   -.87283    
  25  Prefactor     .83931        .17839        .26095E-03   -.98295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56178e-08
Minuit parameter uncertainties:
  1  6.07198e-05
  2  1.35621
  3  7.24045e-06
  4  2.1968e-05
  5  0.000186083
  6  73.1517
  7  17.0234
  8  1.007
  9  23.8521
  10  2.02186
  11  7.69467e-05
  12  3.13857
  13  42.1263
  14  9.36593e-05
  15  8.0353e-05
  16  0.47378
  17  11.9564
  18  9.10437e-05
  19  24.0205
  20  17.9589
  21  3.25712e-05
  22  0.00272748
  23  0.0337288
  24  0.352627
  25  0.178511
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  9.366e-05  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.393e-01  1.785e-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.178e+00  3.526e-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.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480948/likelihoodResults_500601601_500860801_4FGL_J2248.9+2106_daily_bin1008.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) = 6636.23312788
delta logL = -0.000324429827742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6636.23280309
delta logL = 3.64316292689e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3489       1.0000          .0000       10.000    
     3 'Normalizat'    1.1781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83930       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6636.233     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    647.27        .18142E-02** at limit **
   2  Index         2.4159        6.4561        .50000       -.42770E-04
   3  Normalizat    1.1781        .44919E-01    .42577E-03   -.42856E-04
   4  Prefactor     .83930        .23854E-01    .26095E-03   -.35347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010004
  Index      = 2.41587
  Normalizat = 1.17809
  Prefactor  = 0.839303
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.233     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    6164.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4159        8.2786        .50000       -.54314    
   3  Normalizat    1.1781        .10183        .17031E-04   -.87283    
   4  Prefactor     .83930        .54082E-01    .52190E-04   -.98295    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.75055e-10
Minuit parameter uncertainties:
  1  0.0201448
  2  47.5339
  3  0.101849
  4  0.0540857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480948': 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) = 6636.23280246
delta logL = 9.89993168332e-07

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.014e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.416e+00  4.753e+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:  8.393e-01  5.409e-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.178e+00  1.018e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/480948/cmap_HighResolution_500601601_500860801_4FGL_J2248.9+2106_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-28 21:16:02.196622', job_id='480948', GAL2='0.84', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632888962.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1008' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:16:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 480948: <4FGL_J2248.9+2106_daily_bin1008> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1008> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 21:00:40 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:00:41 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:00:41 2021
Terminated at Tue Sep 28 21:16:03 2021
Results reported at Tue Sep 28 21:16:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1008 342.246 21.1159 500601601 500860801 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 :                                   752.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

