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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1503
RA = 342.246, Dec = 21.1159
tmin = 628905601, tmax = 629164801
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='484892', job_status='RUN', time_executed='2021-09-28 21:16:54.719930', time_epoch_executed='1632889014.72' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484892/ft1_4FGL_J2248.9+2106_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484892/ft2_4FGL_J2248.9+2106_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484892/ft1_4FGL_J2248.9+2106_daily_bin1503.fits outfile=/scratch/kocevski/484892/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1503.fits ra=342.246 dec=21.1159 rad=12.0 tmin=628905601.0 tmax=629164801.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.32
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484892/ft1_filtered_4FGL_J2248.9+2106_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/484892/ft2_4FGL_J2248.9+2106_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/484892/ltcube_628905601_629164801_4FGL_J2248.9+2106_daily_bin1503.fits outfile=/scratch/kocevski/484892/expmap_628905601_629164801_4FGL_J2248.9+2106_daily_bin1503.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/484892/ltcube_628905601_629164801_4FGL_J2248.9+2106_daily_bin1503.fits
.....................!
real 191.91
user 186.18
sys 5.27

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/484892/ft1_filtered_4FGL_J2248.9+2106_daily_bin1503.fits scfile=/scratch/kocevski/484892/ft2_4FGL_J2248.9+2106_daily_bin1503.fits outfile=/scratch/kocevski/484892/cmap_628905601_629164801_4FGL_J2248.9+2106_daily_bin1503.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484892/ft1_filtered_4FGL_J2248.9+2106_daily_bin1503.fits scfile=/scratch/kocevski/484892/ft2_4FGL_J2248.9+2106_daily_bin1503.fits outfile=/scratch/kocevski/484892/cmap_HighResolution_628905601_629164801_4FGL_J2248.9+2106_daily_bin1503.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/484892/ft1_filtered_4FGL_J2248.9+2106_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/484892/ft2_4FGL_J2248.9+2106_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484892/Model_4FGL_J2248.9+2106_daily_bin1503.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/484892/ft1_filtered_4FGL_J2248.9+2106_daily_bin1503.fits.....................!
real 80.95
user 79.53
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    113.29       1.0000         .10000E-03   10000.    
     2 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.197       1.0000         .10000E-03   10000.    
     4 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40909E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14478E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23938       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16924       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.259       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.061       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.820       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5558       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72483       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=   7632.983     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2567 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.29        59.225       -.21035E-05    .39641E-04
   2  norm          .10000E-03    .53982        .31099E-07** at limit **
   3  Prefactor     17.188        14.346        .79273E-05    .13289E-03
   4  norm          .10001E-03    2.9227       -.13783E-05** at limit **
   5  Prefactor     .10027E-03    9.5278       -.41561E-06** at limit **
   6  Prefactor     .10000E-03    245.55       -.84788E-06** at limit **
   7  Prefactor     .10000E-03    7.9470       -.16663E-05** at limit **
   8  Prefactor     .23940        .16863        .12427E-07   -.47409E-03
   9  Prefactor     .10000E-03    2.5836       -.16573E-07** at limit **
  10  norm          .10000E-03    .33055       -.52822E-07** at limit **
  11  Prefactor     .10000E-03    4.1827        .11609E-07** at limit **
  12  norm          2.3033        1.5322        .32554E-07    .23082E-03
  13  Prefactor     .10000E-03    7.8957        .36144E-05** at limit **
  14  Prefactor     .10000E-03    7.6007        .35150E-05** at limit **
  15  Prefactor     .10000E-03    5.4687        .18724E-06** at limit **
  16  Prefactor     .16925        .10366        .12967E-07   -.18030E-03
  17  Prefactor     .10000E-03    8.0789       -.32424E-05** at limit **
  18  Prefactor     .10000E-03    3.3989        .43823E-07** at limit **
  19  Prefactor     22.259        14.021        .41906E-06   -.53173E-05
  20  Prefactor     21.578        17.930       -.18179E-06    .64492E-05
  21  Prefactor     3.5515        16.824        .21966E-05   -.69246E-04
  22  Prefactor     12.062        8.2896       -.18231E-05   -.92617E-04
  23  Prefactor     16.819        16.982        .10805E-05   -.48968E-06
  24  Normalizat    1.5558        .21878        .27690E-06    .40524E-03
  25  Prefactor     .72479        .11175       -.37277E-06    .46370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.289
  norm       = 0.0001
  Prefactor  = 17.188
  norm       = 0.000100013
  Prefactor  = 0.000100269
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.239397
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.169246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2591
  Prefactor  = 21.5781
  Prefactor  = 3.55149
  Prefactor  = 12.0617
  Prefactor  = 16.8195
  Normalizat = 1.55585
  Prefactor  = 0.724789
 **********
 **   18 **HESSE 
 **********

 FCN=   7632.983     FROM HESSE     STATUS=OK           437 CALLS     3004 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.29        59.184        .37795E-04   -1.3575    
   2  norm          .10000E-03    1.5528        .12451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.188        14.366        .96583E-04   -1.4879    
   4  norm          .10001E-03    7.3808        .28540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10027E-03    12.413        .80037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    248.79        .21137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.059        .46013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23940        .16167        .28184E-03   -1.5610    
   9  Prefactor     .10000E-03    2.5838        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .59899        .97293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1842        .17450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3033        1.5375        .85789E-04   -1.5404    
  13  Prefactor     .10000E-03    7.8941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16925        .10389        .21172E-04   -1.5626    
  17  Prefactor     .10000E-03    8.1363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4365        .15727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.259        14.012        .84899E-04   -1.4764    
  20  Prefactor     21.578        17.940        .86227E-04   -1.4779    
  21  Prefactor     3.5515        16.701        .21446E-03   -1.5331    
  22  Prefactor     12.062        8.3307        .11535E-03   -1.5013    
  23  Prefactor     16.819        16.966        .97657E-04   -1.4888    
  24  Normalizat    1.5558        .25510        .28327E-03   -.76221    
  25  Prefactor     .72479        .13219        .21171E-03   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15049e-09
Minuit parameter uncertainties:
  1  59.2152
  2  7.76121e-06
  3  14.369
  4  0.000628917
  5  0.00365579
  6  0.00135142
  7  0.000488847
  8  0.161668
  9  3.4602e-08
  10  7.64744e-07
  11  1.66064e-07
  12  1.53755
  13  1.60264e-07
  14  8.35202e-06
  15  3.17907e-08
  16  0.103887
  17  1.02568e-05
  18  3.02244e-06
  19  14.0141
  20  17.9448
  21  15.4099
  22  8.3315
  23  16.9708
  24  0.255314
  25  0.132242
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  8.352e-06  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:  7.248e-01  1.322e-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.556e+00  2.553e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484892/likelihoodResults_628905601_629164801_4FGL_J2248.9+2106_daily_bin1503.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) = 7632.9839285
delta logL = -0.000619322122475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7632.9833107
delta logL = -1.52750362759e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2784       1.0000          .0000       10.000    
     3 'Normalizat'    1.5554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72501       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=   7632.983     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      250 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10165E-03    .11520        .78293E-01** at limit **
   2  Index         2.2030        8.3846        .50000        .14975E-04
   3  Normalizat    1.5558        .81881E-03    .28327E-03    .68669E-04
   4  Prefactor     .72479        .43925E-03    .21171E-03    .86564E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101655
  Index      = 2.20298
  Normalizat = 1.55585
  Prefactor  = 0.724789
 **********
 **   18 **HESSE 
 **********

 FCN=   7632.983     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10165E-03    36.914        .37879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2030        8.2846        .50000       -.59367    
   3  Normalizat    1.5558        .11418E-01    .11331E-04   -.76221    
   4  Prefactor     .72479        .61251E-02    .84683E-05   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.56659e-09
Minuit parameter uncertainties:
  1  0.0156404
  2  274.507
  3  0.0114178
  4  0.00612511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484892': 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) = 7632.98330886
delta logL = 3.11486473947e-07

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.017e-04  1.564e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.203e+00  2.745e+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:  7.248e-01  6.125e-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:  1.556e+00  1.142e-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/484892/cmap_HighResolution_628905601_629164801_4FGL_J2248.9+2106_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-28 21:29:22.517439', job_id='484892', GAL2='0.72', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1632889762.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1503' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:29:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 484892: <4FGL_J2248.9+2106_daily_bin1503> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1503> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:15:16 2021
Job was executed on host(s) <bullet0035>, 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:29:23 2021
Results reported at Tue Sep 28 21:29:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1503 342.246 21.1159 628905601 629164801 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            847 sec.

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

