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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1506
RA = 342.246, Dec = 21.1159
tmin = 629683201, tmax = 629942401
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='484896', job_status='RUN', time_executed='2021-09-28 21:19:03.330554', time_epoch_executed='1632889143.33' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484896

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484896/ft1_4FGL_J2248.9+2106_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484896/ft2_4FGL_J2248.9+2106_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484896/ft1_4FGL_J2248.9+2106_daily_bin1506.fits outfile=/scratch/kocevski/484896/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1506.fits ra=342.246 dec=21.1159 rad=12.0 tmin=629683201.0 tmax=629942401.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.52
user 3.34
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484896/ft1_filtered_4FGL_J2248.9+2106_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/484896/ft2_4FGL_J2248.9+2106_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/484896/ltcube_629683201_629942401_4FGL_J2248.9+2106_daily_bin1506.fits outfile=/scratch/kocevski/484896/expmap_629683201_629942401_4FGL_J2248.9+2106_daily_bin1506.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/484896/ltcube_629683201_629942401_4FGL_J2248.9+2106_daily_bin1506.fits
.....................!
real 190.79
user 185.39
sys 5.00

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/484896/ft1_filtered_4FGL_J2248.9+2106_daily_bin1506.fits scfile=/scratch/kocevski/484896/ft2_4FGL_J2248.9+2106_daily_bin1506.fits outfile=/scratch/kocevski/484896/cmap_629683201_629942401_4FGL_J2248.9+2106_daily_bin1506.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484896/ft1_filtered_4FGL_J2248.9+2106_daily_bin1506.fits scfile=/scratch/kocevski/484896/ft2_4FGL_J2248.9+2106_daily_bin1506.fits outfile=/scratch/kocevski/484896/cmap_HighResolution_629683201_629942401_4FGL_J2248.9+2106_daily_bin1506.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/484896/ft1_filtered_4FGL_J2248.9+2106_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/484896/ft2_4FGL_J2248.9+2106_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484896/Model_4FGL_J2248.9+2106_daily_bin1506.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/484896/ft1_filtered_4FGL_J2248.9+2106_daily_bin1506.fits.....................!
real 86.25
user 84.91
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .60905       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.179       1.0000         .10000E-03   10000.    
     4 'norm      '    7.4741       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55499E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21271       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7607       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3025       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11320E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16857       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5390       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10912E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5143       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11407E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1944       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97444       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=   8136.759     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2501 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.373       -.17293E-04** at limit **
   2  norm          .60856        1.2190       -.54200E-06   -.18893E-02
   3  Prefactor     12.179        12.221       -.23395E-06    .12657E-05
   4  norm          7.4745        5.9149       -.17720E-06   -.36055E-04
   5  Prefactor     .10087E-03    10.997       -.18672E-05** at limit **
   6  Prefactor     .10000E-03    38.273        .52360E-05** at limit **
   7  Prefactor     .10000E-03    6.8440       -.41170E-07** at limit **
   8  Prefactor     .21258        .17073       -.25875E-07   -.10581E-04
   9  Prefactor     6.7607        7.1531        .63364E-06    .64865E-04
  10  norm          2.3025        1.3820       -.10185E-06   -.48290E-03
  11  Prefactor     .10000E-03    7.3335        .20686E-06** at limit **
  12  norm          2.3164        1.4379        .95548E-08    .21123E-03
  13  Prefactor     .10000E-03    7.5114       -.20842E-06** at limit **
  14  Prefactor     .10000E-03    4.3320        .10501E-07** at limit **
  15  Prefactor     .10000E-03    98.611        .42123E-04** at limit **
  16  Prefactor     .16852        .13082       -.47383E-07   -.58932E-02
  17  Prefactor     7.5420        11.110       -.15096E-05   -.68370E-04
  18  Prefactor     4.3670        7.9008       -.16120E-05   -.35618E-03
  19  Prefactor     .10000E-03    4.0315       -.79187E-08** at limit **
  20  Prefactor     .10000E-03    13.998        .17670E-07** at limit **
  21  Prefactor     .10000E-03    58.609        .83540E-05** at limit **
  22  Prefactor     3.5147        7.6606       -.22358E-05   -.33811E-03
  23  Prefactor     .10000E-03    17.300        .39519E-07** at limit **
  24  Normalizat    1.1942        .21970        .13750E-05   -.89146E-04
  25  Prefactor     .97454        .11414        .19012E-06   -.69155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.608563
  Prefactor  = 12.1789
  norm       = 7.47448
  Prefactor  = 0.000100871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.212583
  Prefactor  = 6.76071
  norm       = 2.30247
  Prefactor  = 0.0001
  norm       = 2.31642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.168524
  Prefactor  = 7.54202
  Prefactor  = 4.36698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.51471
  Prefactor  = 0.0001
  Normalizat = 1.19417
  Prefactor  = 0.974539
 **********
 **   18 **HESSE 
 **********

 FCN=   8136.759     FROM HESSE     STATUS=OK           441 CALLS     2942 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .60856        1.2273        .13589E-03   -1.5552    
   3  Prefactor     12.179        12.221        .11479E-03   -1.5010    
   4  norm          7.4745        5.8962        .14670E-03   -1.5161    
   5  Prefactor     .10087E-03    11.796        .86768E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21258        .16280        .31098E-03   -1.5616    
   9  Prefactor     6.7607        7.1518        .15432E-03   -1.5188    
  10  norm          2.3025        1.3773        .77990E-04   -1.5404    
  11  Prefactor     .10000E-03    7.3376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3164        1.4421        .82976E-04   -1.5404    
  13  Prefactor     .10000E-03    7.5129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    96.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16852        .12467        .27033E-03   -1.5626    
  17  Prefactor     7.5420        11.129        .14606E-03   -1.5159    
  18  Prefactor     4.3670        7.9094        .19274E-03   -1.5290    
  19  Prefactor     .10000E-03    4.0358        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    59.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5147        7.7355        .21565E-03   -1.5333    
  23  Prefactor     .10000E-03    17.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1942        .25857        .33401E-03   -.86783    
  25  Prefactor     .97454        .13556        .19607E-03   -.93583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36893e-09
Minuit parameter uncertainties:
  1  2.07668e-05
  2  1.22732
  3  12.2232
  4  5.89667
  5  0.00641256
  6  8.05597e-06
  7  3.42936e-06
  8  0.162796
  9  7.15268
  10  1.37731
  11  8.99213e-07
  12  1.44213
  13  2.26476e-06
  14  5.56108e-07
  15  0.00122858
  16  0.124674
  17  11.1316
  18  7.91128
  19  2.57982e-07
  20  6.22373e-06
  21  0.000217816
  22  7.73767
  23  9.01935e-05
  24  0.25885
  25  0.135605
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  5.561e-07  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:  9.745e-01  1.356e-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.194e+00  2.588e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484896/likelihoodResults_629683201_629942401_4FGL_J2248.9+2106_daily_bin1506.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) = 8136.7601922
delta logL = -0.00109642313146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8136.75909577
delta logL = 1.09594111564e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2931       1.0000          .0000       10.000    
     3 'Normalizat'    1.1942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97454       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=   8136.759     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    334.19        .90712E-02** at limit **
   2  Index         2.2882        6.3078        .50000        .94953E-05
   3  Normalizat    1.1942        .53216E-01    .75469E-01   -.33692E-03
   4  Prefactor     .97454        .28688E-01    .45948E-01   -.12817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.28817
  Normalizat = 1.19416
  Prefactor  = 0.974541
 **********
 **   18 **HESSE 
 **********

 FCN=   8136.759     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      235 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1013.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2882        7.3485        .50000       -.57325    
   3  Normalizat    1.1942        .20120        .33401E-03   -.86783    
   4  Prefactor     .97454        .10862        .19607E-03   -.93583    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11975e-07
Minuit parameter uncertainties:
  1  0.00271447
  2  65.2916
  3  0.20133
  4  0.108646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484896': 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) = 8136.75909575
delta logL = 2.22280505113e-08

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.714e-03  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.288e+00  6.529e+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:  9.745e-01  1.086e-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.194e+00  2.013e-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/484896/cmap_HighResolution_629683201_629942401_4FGL_J2248.9+2106_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-28 21:31:31.349593', job_id='484896', GAL2='0.97', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632889891.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1506' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:31:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 484896: <4FGL_J2248.9+2106_daily_bin1506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1506 342.246 21.1159 629683201 629942401 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 :                                   742.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

