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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1081
RA = 342.246, Dec = 21.1159
tmin = 519523201, tmax = 519782401
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='481050', job_status='RUN', time_executed='2021-09-28 21:00:56.635578', time_epoch_executed='1632888056.64' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481050

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481050/ft1_4FGL_J2248.9+2106_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481050/ft2_4FGL_J2248.9+2106_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481050/ft1_4FGL_J2248.9+2106_daily_bin1081.fits outfile=/scratch/kocevski/481050/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1081.fits ra=342.246 dec=21.1159 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.91
user 2.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481050/ft1_filtered_4FGL_J2248.9+2106_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/481050/ft2_4FGL_J2248.9+2106_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/481050/ltcube_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.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/481050/ft2_4FGL_J2248.9+2106_daily_bin1081.fits
.....................!
real 9.89
user 9.58
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481050/ft1_filtered_4FGL_J2248.9+2106_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/481050/ft2_4FGL_J2248.9+2106_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/481050/ltcube_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.fits outfile=/scratch/kocevski/481050/expmap_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.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/481050/ltcube_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.fits
.....................!
real 190.74
user 184.91
sys 5.46

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/481050/ft1_filtered_4FGL_J2248.9+2106_daily_bin1081.fits scfile=/scratch/kocevski/481050/ft2_4FGL_J2248.9+2106_daily_bin1081.fits outfile=/scratch/kocevski/481050/cmap_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481050/ft1_filtered_4FGL_J2248.9+2106_daily_bin1081.fits scfile=/scratch/kocevski/481050/ft2_4FGL_J2248.9+2106_daily_bin1081.fits outfile=/scratch/kocevski/481050/cmap_HighResolution_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12760E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78410       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8389       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3978       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.987       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.493       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.711       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9852       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1364       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20049E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77957       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0589       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=   8596.246     FROM MIGRAD    STATUS=CONVERGED   1063 CALLS     3425 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10163E-03    31.141        .17588    ** at limit **
   2  norm          .10000E-03    .57492        .13403E-02** at limit **
   3  Prefactor     .77271        48.866        .49359E-02    .10037E-03
   4  norm          6.8387        4.5222        .15342E-03    .12375E-03
   5  Prefactor     .10000E-03    19.015        .18142E-02** at limit **
   6  Prefactor     .10001E-03    86.010        .18142E-02** at limit **
   7  Prefactor     8.8084        11.012        .13507E-03    .15672E-03
   8  Prefactor     5.3978        .49022        .18620E-04    .12858E-02
   9  Prefactor     14.986        14.855        .10346E-03   -.32526E-04
  10  norm          1.4042        1.1013        .18297E-03    .52329E-03
  11  Prefactor     .10000E-03    9.8775        .18142E-02** at limit **
  12  norm          2.6900        1.8642        .10234E-03    .10287E-03
  13  Prefactor     44.498        34.556        .60105E-04    .56744E-05
  14  Prefactor     .10000E-03    4.8704        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.0263        .18142E-02** at limit **
  16  Prefactor     .76191        .18207        .18204E-04    .90055E-03
  17  Prefactor     11.708        11.596        .11706E-03   -.41954E-04
  18  Prefactor     2.9843        6.3800        .23497E-03    .68511E-04
  19  Prefactor     .10000E-03    12.374        .18142E-02** at limit **
  20  Prefactor     .10000E-03    7.1305        .18142E-02** at limit **
  21  Prefactor     6.1421        20.110        .16207E-03    .37880E-04
  22  Prefactor     .10022E-03    5.3339        .54705E-01** at limit **
  23  Prefactor     .10000E-03    14.279        .18142E-02** at limit **
  24  Normalizat    .77938        .26565        .41599E-03    .34452E-03
  25  Prefactor     1.0591        .14594        .20180E-03    .31551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101635
  norm       = 0.0001
  Prefactor  = 0.772709
  norm       = 6.8387
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 8.80843
  Prefactor  = 5.39783
  Prefactor  = 14.9863
  norm       = 1.4042
  Prefactor  = 0.0001
  norm       = 2.68997
  Prefactor  = 44.4982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.76191
  Prefactor  = 11.7083
  Prefactor  = 2.98431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14214
  Prefactor  = 0.000100224
  Prefactor  = 0.0001
  Normalizat = 0.779384
  Prefactor  = 1.05906
 **********
 **   18 **HESSE 
 **********

 FCN=   8596.246     FROM HESSE     STATUS=OK           423 CALLS     3848 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10163E-03    31.243        .17533       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .57551        .26807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .77271        49.012        .19744E-03   -1.5532    
   4  norm          6.8387        4.5220        .61369E-05   -1.5185    
   5  Prefactor     .10000E-03    19.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    86.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8084        11.006        .54028E-05   -1.5114    
   8  Prefactor     5.3978        .49018        .74481E-06   -1.5243    
   9  Prefactor     14.986        14.856        .41383E-05   -1.4934    
  10  norm          1.4042        1.1012        .73189E-05   -1.5471    
  11  Prefactor     .10000E-03    9.8781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6900        1.8641        .40936E-05   -1.5380    
  13  Prefactor     44.498        34.551        .24042E-05   -1.4373    
  14  Prefactor     .10000E-03    4.8708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .76191        .18206        .72816E-06   -1.5533    
  17  Prefactor     11.708        11.596        .46826E-05   -1.5023    
  18  Prefactor     2.9843        6.3790        .93988E-05   -1.5362    
  19  Prefactor     .10000E-03    12.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1421        20.109        .64827E-05   -1.5212    
  22  Prefactor     .10022E-03    4.9699        .57431E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77938        .26565        .16639E-04   -1.0084    
  25  Prefactor     1.0591        .14605        .40359E-04   -.90786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33234e-09
Minuit parameter uncertainties:
  1  0.0142999
  2  2.7199e-06
  3  12.3178
  4  4.52225
  5  2.32457e-05
  6  0.00190337
  7  11.0084
  8  0.490178
  9  14.8593
  10  1.10127
  11  6.86633e-05
  12  1.86416
  13  34.5668
  14  2.10819e-05
  15  7.49341e-06
  16  0.182055
  17  11.5979
  18  6.38047
  19  3.56038e-05
  20  1.83993e-05
  21  20.1313
  22  0.0021111
  23  9.7193e-05
  24  0.266089
  25  0.146104
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.108e-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.059e+00  1.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.794e-01  2.661e-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: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481050/likelihoodResults_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.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) = 8596.24727533
delta logL = -0.000977662308287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8596.24629766
delta logL = 4.8203219194e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2829       1.0000          .0000       10.000    
     3 'Normalizat'    .77935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0591       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=   8596.246     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    44.382        .18142E-02** at limit **
   2  Index         2.2401        8.7783        .50000        .21897E-04
   3  Normalizat    .77938        .16343E-01    .41598E-03    .61765E-05
   4  Prefactor     1.0591        .91864E-02    .20180E-03   -.36056E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100731
  Index      = 2.24015
  Normalizat = 0.779379
  Prefactor  = 1.05906
 **********
 **   18 **HESSE 
 **********

 FCN=   8596.246     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    200.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2401        5.3282        .50000       -.58473    
   3  Normalizat    .77938        .36065E-01    .16639E-04   -1.0084    
   4  Prefactor     1.0591        .20271E-01    .40359E-04   -.90786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.56889e-08
Minuit parameter uncertainties:
  1  0.0242765
  2  480.389
  3  0.0360658
  4  0.0202709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481050': 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) = 8596.2462974
delta logL = 2.58540239884e-07

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.007e-04  2.428e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.240e+00  4.804e+02  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.059e+00  2.027e-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:  7.794e-01  3.607e-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/481050/cmap_HighResolution_519523201_519782401_4FGL_J2248.9+2106_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-28 21:15:46.846208', job_id='481050', GAL2='1.06', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632888946.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1081' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:15:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 481050: <4FGL_J2248.9+2106_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1081 342.246 21.1159 519523201 519782401 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 :                                   886.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

