/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 169 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2248.9+2106_daily_bin47
RA = 342.246, Dec = 21.1159
tmin = 251510401, tmax = 251769601
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='477441', job_status='RUN', time_executed='2021-09-28 20:53:18.756621', time_epoch_executed='1632887598.76' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477441/ft1_4FGL_J2248.9+2106_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477441/ft2_4FGL_J2248.9+2106_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477441/ft1_4FGL_J2248.9+2106_daily_bin47.fits outfile=/scratch/kocevski/477441/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin47.fits ra=342.246 dec=21.1159 rad=12.0 tmin=251510401.0 tmax=251769601.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 1.47
user 1.30
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477441/ft1_filtered_4FGL_J2248.9+2106_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/477441/ft2_4FGL_J2248.9+2106_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/477441/ltcube_251510401_251769601_4FGL_J2248.9+2106_daily_bin47.fits outfile=/scratch/kocevski/477441/expmap_251510401_251769601_4FGL_J2248.9+2106_daily_bin47.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/477441/ltcube_251510401_251769601_4FGL_J2248.9+2106_daily_bin47.fits
.....................!
real 190.80
user 185.57
sys 4.87

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/477441/ft1_filtered_4FGL_J2248.9+2106_daily_bin47.fits scfile=/scratch/kocevski/477441/ft2_4FGL_J2248.9+2106_daily_bin47.fits outfile=/scratch/kocevski/477441/cmap_251510401_251769601_4FGL_J2248.9+2106_daily_bin47.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477441/ft1_filtered_4FGL_J2248.9+2106_daily_bin47.fits scfile=/scratch/kocevski/477441/ft2_4FGL_J2248.9+2106_daily_bin47.fits outfile=/scratch/kocevski/477441/cmap_HighResolution_251510401_251769601_4FGL_J2248.9+2106_daily_bin47.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2996       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.807       1.0000         .10000E-03   10000.    
     4 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31054       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.724       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2570       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.620       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.121       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.799       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9249       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.493       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7301       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .40882       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1915       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=   8296.342     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2898 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.522        .88676E-06** at limit **
   2  norm          2.2995        1.2303        .17261E-06    .27756E-03
   3  Prefactor     16.805        12.238       -.22170E-06    .16096E-03
   4  norm          .10000E-03    3.9746        .50943E-06** at limit **
   5  Prefactor     5.9572        9.2149        .35315E-05   -.12748E-04
   6  Prefactor     1.2862        1090.5       -.65725E-04    .13234E-04
   7  Prefactor     .10000E-03    4.2282        .23546E-06** at limit **
   8  Prefactor     .31046        .17502        .69116E-08    .64434E-03
   9  Prefactor     13.721        12.722        .87961E-07    .41338E-04
  10  norm          1.2571        .98786       -.15905E-06    .83644E-03
  11  Prefactor     10.618        21.928        .14584E-05    .65585E-04
  12  norm          2.6083        1.5698        .21905E-07    .13078E-03
  13  Prefactor     38.099        33.114        .11177E-06   -.19808E-04
  14  Prefactor     .10000E-03    10.094        .62933E-06** at limit **
  15  Prefactor     12.791        18.875        .33828E-06    .34404E-04
  16  Prefactor     2.9250        .30072        .39530E-07    .15161E-02
  17  Prefactor     .10000E-03    21.137        .15447E-05** at limit **
  18  Prefactor     5.7027        8.4259        .78900E-06    .86675E-04
  19  Prefactor     .10000E-03    6.2105        .25766E-06** at limit **
  20  Prefactor     .10000E-03    39.755        .22011E-05** at limit **
  21  Prefactor     .10000E-03    10.154        .30145E-06** at limit **
  22  Prefactor     16.492        9.4825        .29947E-06    .52866E-04
  23  Prefactor     2.7437        62.709        .54392E-05    .36851E-04
  24  Normalizat    .40913        .26345       -.13408E-04   -.23102E-06
  25  Prefactor     1.1915        .14243        .28525E-05    .12994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.29951
  Prefactor  = 16.8046
  norm       = 0.0001
  Prefactor  = 5.95724
  Prefactor  = 1.28615
  Prefactor  = 0.0001
  Prefactor  = 0.310462
  Prefactor  = 13.721
  norm       = 1.25711
  Prefactor  = 10.6175
  norm       = 2.6083
  Prefactor  = 38.0989
  Prefactor  = 0.0001
  Prefactor  = 12.7906
  Prefactor  = 2.92498
  Prefactor  = 0.0001
  Prefactor  = 5.70273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4919
  Prefactor  = 2.74367
  Normalizat = 0.409125
  Prefactor  = 1.19146
 **********
 **   18 **HESSE 
 **********

 FCN=   8296.342     FROM HESSE     STATUS=OK           433 CALLS     3331 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2995        1.2269        .70914E-04   -1.5405    
   3  Prefactor     16.805        12.219        .97696E-04   -1.4888    
   4  norm          .10000E-03    4.0996        .35475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9572        9.2896        .82246E-03   -1.5220    
   6  Prefactor     1.2862        1143.1        .36038E-02   -1.5481    
   7  Prefactor     .10000E-03    4.2522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31046        .17339        .26591E-04   -1.5597    
   9  Prefactor     13.721        12.738        .10812E-03   -1.4967    
  10  norm          1.2571        .96750        .73303E-04   -1.5484    
  11  Prefactor     10.618        21.827        .12295E-03   -1.5056    
  12  norm          2.6083        1.5729        .86179E-04   -1.5385    
  13  Prefactor     38.099        33.219        .64915E-04   -1.4473    
  14  Prefactor     .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.791        18.894        .11197E-03   -1.4993    
  16  Prefactor     2.9250        .30138        .14602E-04   -1.5366    
  17  Prefactor     .10000E-03    21.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7027        8.4313        .16812E-03   -1.5230    
  19  Prefactor     .10000E-03    6.2407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.492        9.2674        .98620E-04   -1.4896    
  23  Prefactor     2.7437        60.104        .24644E-03   -1.5377    
  24  Normalizat    .40913        .25976        .53765E-03   -1.1683    
  25  Prefactor     1.1915        .14211        .18527E-03   -.86595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10561e-10
Minuit parameter uncertainties:
  1  0.000250028
  2  1.22693
  3  12.2207
  4  1.46767e-05
  5  9.2918
  6  78.2321
  7  2.39992e-05
  8  0.173393
  9  12.74
  10  0.967516
  11  21.8431
  12  1.5729
  13  33.2355
  14  4.67898e-05
  15  18.9024
  16  0.301382
  17  0.00014472
  18  8.43309
  19  1.01923e-05
  20  0.000249557
  21  2.79719e-05
  22  9.26819
  23  25.712
  24  0.260533
  25  0.142158
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  4.679e-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:  1.191e+00  1.422e-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:  4.091e-01  2.605e-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: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477441/likelihoodResults_251510401_251769601_4FGL_J2248.9+2106_daily_bin47.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) = 8296.34235328
delta logL = -0.000465607259684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8296.34189442
delta logL = -6.75282171869e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3622       1.0000          .0000       10.000    
     3 'Normalizat'    .40819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1919       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=   8296.342     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      219 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    1.2570        .90712E-01** at limit **
   2  Index         2.4541        2.2162        .50000       -.86980E-04
   3  Normalizat    .40913        .28544E-02    .12130        .17494E-02
   4  Prefactor     1.1915        .16314E-02    .34824E-01   -.38397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100102
  Index      = 2.45411
  Normalizat = 0.409127
  Prefactor  = 1.19146
 **********
 **   18 **HESSE 
 **********

 FCN=   8296.342     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    166.73        .36902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4541        6.9121        .50000       -.53423    
   3  Normalizat    .40913        .15196E-01    .26881E-02   -1.1683    
   4  Prefactor     1.1915        .87112E-02    .18527E-03   -.86595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01121e-07
Minuit parameter uncertainties:
  1  0.00827379
  2  12.3329
  3  0.0151959
  4  0.00871117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477441': 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) = 8296.3418852
delta logL = 2.47123898589e-06

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.001e-04  8.274e-03  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.454e+00  1.233e+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.191e+00  8.711e-03  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:  4.091e-01  1.520e-02  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/477441/cmap_HighResolution_251510401_251769601_4FGL_J2248.9+2106_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-28 21:06:44.954755', job_id='477441', GAL2='1.19', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1632888404.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='47' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 477441: <4FGL_J2248.9+2106_daily_bin47> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin47 342.246 21.1159 251510401 251769601 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 :                                   806.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

