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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1056
RA = 342.246, Dec = 21.1159
tmin = 513043201, tmax = 513302401
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='481015', job_status='RUN', time_executed='2021-09-28 21:03:48.190960', time_epoch_executed='1632888228.19' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481015

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481015/ft1_4FGL_J2248.9+2106_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481015/ft2_4FGL_J2248.9+2106_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481015/ft1_4FGL_J2248.9+2106_daily_bin1056.fits outfile=/scratch/kocevski/481015/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1056.fits ra=342.246 dec=21.1159 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.39
user 6.06
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481015/ft2_4FGL_J2248.9+2106_daily_bin1056.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/481015/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/481015/ft1_filtered_4FGL_J2248.9+2106_daily_bin1056.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/481015/ft1_filtered_4FGL_J2248.9+2106_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/481015/ft2_4FGL_J2248.9+2106_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/481015/ltcube_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.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/481015/ft2_4FGL_J2248.9+2106_daily_bin1056.fits
.....................!
real 14.85
user 14.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481015/ft1_filtered_4FGL_J2248.9+2106_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/481015/ft2_4FGL_J2248.9+2106_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/481015/ltcube_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.fits outfile=/scratch/kocevski/481015/expmap_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.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/481015/ltcube_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.fits
.....................!
real 193.00
user 186.26
sys 4.34

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/481015/ft1_filtered_4FGL_J2248.9+2106_daily_bin1056.fits scfile=/scratch/kocevski/481015/ft2_4FGL_J2248.9+2106_daily_bin1056.fits outfile=/scratch/kocevski/481015/cmap_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481015/ft1_filtered_4FGL_J2248.9+2106_daily_bin1056.fits scfile=/scratch/kocevski/481015/ft2_4FGL_J2248.9+2106_daily_bin1056.fits outfile=/scratch/kocevski/481015/cmap_HighResolution_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18505E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.465       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5819       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.309       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6200       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12974E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.760       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0559       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96155       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=   7522.381     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2499 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    179.79        .14250E-03** at limit **
   2  norm          .10000E-03    .60409       -.15882E-07** at limit **
   3  Prefactor     .10000E-03    6.4814       -.70375E-07** at limit **
   4  norm          .10000E-03    2.7641       -.60833E-07** at limit **
   5  Prefactor     40.466        23.877       -.38482E-06   -.92361E-05
   6  Prefactor     .10000E-03    31.439       -.51267E-05** at limit **
   7  Prefactor     9.5767        13.625        .33067E-06   -.87718E-04
   8  Prefactor     4.1685        .51749        .59399E-08   -.46849E-04
   9  Prefactor     .10000E-03    13.363       -.53762E-06** at limit **
  10  norm          2.9669        1.2742       -.50981E-07    .85177E-04
  11  Prefactor     .10000E-03    8.4136       -.40474E-05** at limit **
  12  norm          .10000E-03    .80161       -.99592E-08** at limit **
  13  Prefactor     70.293        50.485       -.93083E-05   -.61503E-05
  14  Prefactor     12.808        13.231       -.30832E-06   -.45405E-04
  15  Prefactor     .10000E-03    25.044        .36644E-05** at limit **
  16  Prefactor     3.3478        .36641        .47077E-07   -.19642E-02
  17  Prefactor     12.946        11.084       -.22057E-06   -.31765E-04
  18  Prefactor     .10000E-03    4.5503        .24476E-08** at limit **
  19  Prefactor     .10000E-03    8.5411        .39330E-05** at limit **
  20  Prefactor     3.6219        9.9034       -.83194E-06   -.12526E-03
  21  Prefactor     .10000E-03    6.8586        .23776E-06** at limit **
  22  Prefactor     .12122E-03    3.7641        .82284E-06** at limit **
  23  Prefactor     20.792        22.108       -.11370E-04   -.13971E-03
  24  Normalizat    1.0561        .26362        .30329E-05   -.33913E-03
  25  Prefactor     .96130        .13703       -.33878E-06   -.35699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.4655
  Prefactor  = 0.0001
  Prefactor  = 9.57673
  Prefactor  = 4.16849
  Prefactor  = 0.0001
  norm       = 2.96689
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.2929
  Prefactor  = 12.8078
  Prefactor  = 0.0001
  Prefactor  = 3.34777
  Prefactor  = 12.946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62192
  Prefactor  = 0.0001
  Prefactor  = 0.000121219
  Prefactor  = 20.7918
  Normalizat = 1.05612
  Prefactor  = 0.961297
 **********
 **   18 **HESSE 
 **********

 FCN=   7522.381     FROM HESSE     STATUS=OK           429 CALLS     2928 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    178.44        .20297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .62628        .13157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7754        .14080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.466        23.934        .63014E-04   -1.4435    
   6  Prefactor     .10000E-03    31.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5767        13.645        .12946E-03   -1.5089    
   8  Prefactor     4.1685        .51931        .20780E-04   -1.5300    
   9  Prefactor     .10000E-03    13.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9669        1.2743        .62003E-04   -1.5363    
  11  Prefactor     .10000E-03    8.4202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .80646        .75799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.293        50.551        .47874E-04   -1.4029    
  14  Prefactor     12.808        13.235        .11193E-03   -1.4992    
  15  Prefactor     .10000E-03    25.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3478        .36800        .16186E-04   -1.5342    
  17  Prefactor     12.946        11.083        .11134E-03   -1.4988    
  18  Prefactor     .10000E-03    4.5915        .18065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6219        9.8873        .21235E-03   -1.5327    
  21  Prefactor     .10000E-03    6.8626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12122E-03    8.1519        .52692E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.792        22.442        .87906E-04   -1.4796    
  24  Normalizat    1.0561        .30624        .40245E-03   -.91173    
  25  Prefactor     .96130        .15973        .22913E-03   -.94031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35857e-09
Minuit parameter uncertainties:
  1  0.00154052
  2  3.23525e-06
  3  8.75483e-06
  4  4.85051e-06
  5  23.9394
  6  1.10107e-05
  7  13.6492
  8  0.519312
  9  2.45493e-06
  10  1.27436
  11  2.60817e-06
  12  1.9573e-07
  13  50.5821
  14  13.2378
  15  7.69206e-06
  16  0.368001
  17  11.0852
  18  6.55153e-07
  19  1.26677e-05
  20  9.89175
  21  2.65373e-06
  22  0.0263078
  23  22.451
  24  0.306758
  25  0.159805
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.281e+01  1.324e+01  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.613e-01  1.598e-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.056e+00  3.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.76e-05

TS (Fixed Index): 1.31
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481015/likelihoodResults_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.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): 0
logL (Free Index) = 7521.11731479
delta logL = 1.2631934726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7521.07288842
delta logL = 1.30761983908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2112       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8897       1.0000          .0000       10.000    
     3 'Normalizat'    .95041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99845       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=   7521.073     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      306 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2030        9.8505        .10275E-01   -.13859E-02
   2  Index         3.8925        2.0129        .99107E-01   -.43609E-04
   3  Normalizat    .95063        .72188E-01    .94865E-01    .59428E-04
   4  Prefactor     .99832        .39304E-01    .46248E-01   -.17044E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20302
  Index      = 3.89252
  Normalizat = 0.950634
  Prefactor  = 0.998317
 **********
 **   18 **HESSE 
 **********

 FCN=   7521.073     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      337 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2030        21.313        .54851E-04   -1.5489    
   2  Index         3.8925        3.3599        .37159E-02   -.22335    
   3  Normalizat    .95063        .27329        .42025E-03   -.94703    
   4  Prefactor     .99832        .14931        .22513E-03   -.92786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.10766e-10
Minuit parameter uncertainties:
  1  10.131
  2  3.70675
  3  0.273693
  4  0.149371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481015': 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) = 7521.07288537
delta logL = 1.30762289134

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.203e+00  1.013e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.893e+00  3.707e+00  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.983e-01  1.494e-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:  9.506e-01  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 342.246 21.116
Photon Index (Free Index): 3.89 +/- 3.71
Photon Flux (Free Index): 1.32e-07 +/- 8.10e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.54e-05

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/481015/cmap_HighResolution_513043201_513302401_4FGL_J2248.9+2106_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='2.01e-05', photon_flux_error='4.62e-08', dlogl='1.31e+00', energy_flux='1.70e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-28 21:17:06.059721', photon_index_error2='3.71', photon_index2='3.89', ts='1.31', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.54e-05', EG='1.06', time_epoch_completed='1632889026.06', return_code='0', job_id='481015', GAL2='1.00', EG2='0.95', return_code2='102', energy_flux_error='1.76e-05', photon_flux_error2='8.10e-08', ts2='4.10', photon_index='2.30' WHERE bin_id='1056' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:17:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 481015: <4FGL_J2248.9+2106_daily_bin1056> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1056 342.246 21.1159 513043201 513302401 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

