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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1569
RA = 342.246, Dec = 21.1159
tmin = 646012801, tmax = 646272001
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='484988', job_status='RUN', time_executed='2021-09-28 21:18:34.979518', time_epoch_executed='1632889114.98' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484988/ft1_4FGL_J2248.9+2106_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484988/ft2_4FGL_J2248.9+2106_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484988/ft1_4FGL_J2248.9+2106_daily_bin1569.fits outfile=/scratch/kocevski/484988/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1569.fits ra=342.246 dec=21.1159 rad=12.0 tmin=646012801.0 tmax=646272001.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 4.64
user 4.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484988/ft1_filtered_4FGL_J2248.9+2106_daily_bin1569.fits" evtable="EVENTS" scfile=/scratch/kocevski/484988/ft2_4FGL_J2248.9+2106_daily_bin1569.fits sctable="SC_DATA" outfile=/scratch/kocevski/484988/ltcube_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.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/484988/ft2_4FGL_J2248.9+2106_daily_bin1569.fits
.....................!
real 12.44
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484988/ft1_filtered_4FGL_J2248.9+2106_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/484988/ft2_4FGL_J2248.9+2106_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/484988/ltcube_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.fits outfile=/scratch/kocevski/484988/expmap_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.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/484988/ltcube_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.fits
.....................!
real 192.44
user 186.80
sys 5.28

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/484988/ft1_filtered_4FGL_J2248.9+2106_daily_bin1569.fits scfile=/scratch/kocevski/484988/ft2_4FGL_J2248.9+2106_daily_bin1569.fits outfile=/scratch/kocevski/484988/cmap_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484988/ft1_filtered_4FGL_J2248.9+2106_daily_bin1569.fits scfile=/scratch/kocevski/484988/ft2_4FGL_J2248.9+2106_daily_bin1569.fits outfile=/scratch/kocevski/484988/cmap_HighResolution_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .74116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.169       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4512       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .74215E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.880       1.0000         .10000E-03   10000.    
    10 'norm      '    .58232       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.105       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5916       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14860       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53504       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5072       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65970       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=   8339.406     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2567 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.121        .46087E-05** at limit **
   2  norm          .74111        .94812        .45903E-07   -.45169E-03
   3  Prefactor     12.169        11.821        .83792E-07   -.59962E-05
   4  norm          .10000E-03    1.0373       -.32927E-07** at limit **
   5  Prefactor     4.6879        8.3428        .93904E-06   -.99534E-03
   6  Prefactor     .10000E-03    17.475        .41802E-05** at limit **
   7  Prefactor     5.4491        8.8548        .93915E-06   -.97155E-03
   8  Prefactor     .74194E-01    .87282E-01   -.14843E-07   -.37343E-03
   9  Prefactor     20.880        11.108        .33328E-07    .57457E-05
  10  norm          .58246        .95568        .10827E-06   -.23854E-03
  11  Prefactor     .10000E-03    13.972       -.76987E-05** at limit **
  12  norm          2.7941        1.5896       -.78242E-08    .67823E-05
  13  Prefactor     20.626        19.894        .54408E-06    .32658E-04
  14  Prefactor     12.105        10.017        .56893E-07   -.13821E-05
  15  Prefactor     5.5922        12.439       -.90483E-07   -.23280E-04
  16  Prefactor     .14852        .11994       -.34506E-08   -.12347E-02
  17  Prefactor     4.9190        6.4478        .29457E-06    .12879E-04
  18  Prefactor     .10000E-03    2.1865        .29127E-07** at limit **
  19  Prefactor     8.6209        10.424        .32200E-06   -.46404E-03
  20  Prefactor     .10000E-03    9.8630       -.73711E-06** at limit **
  21  Prefactor     .10000E-03    5.8814       -.22959E-09** at limit **
  22  Prefactor     .52233        2.7143        .21334E-06   -.15513E-03
  23  Prefactor     .10000E-03    46.987       -.13403E-05** at limit **
  24  Normalizat    1.5073        .19029       -.31166E-06    .26622E-04
  25  Prefactor     .65967        .98477E-01   -.20048E-06    .34307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.74111
  Prefactor  = 12.1686
  norm       = 0.0001
  Prefactor  = 4.68788
  Prefactor  = 0.000100001
  Prefactor  = 5.44912
  Prefactor  = 0.0741942
  Prefactor  = 20.8797
  norm       = 0.582459
  Prefactor  = 0.000100002
  norm       = 2.79414
  Prefactor  = 20.6256
  Prefactor  = 12.1048
  Prefactor  = 5.59221
  Prefactor  = 0.14852
  Prefactor  = 4.91903
  Prefactor  = 0.0001
  Prefactor  = 8.62091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.522335
  Prefactor  = 0.0001
  Normalizat = 1.50735
  Prefactor  = 0.659669
 **********
 **   18 **HESSE 
 **********

 FCN=   8339.406     FROM HESSE     STATUS=OK           441 CALLS     3008 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .74111        .88204        .96706E-03   -1.5536    
   3  Prefactor     12.169        11.820        .11483E-03   -1.5010    
   4  norm          .10000E-03    1.0395        .90818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6879        10.290        .92919E-03   -1.5275    
   6  Prefactor     .10000E-03    17.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4491        10.625        .86051E-03   -1.5241    
   8  Prefactor     .74194E-01    .78176E-01    .28187E-03   -1.5654    
   9  Prefactor     20.880        11.099        .87655E-04   -1.4794    
  10  norm          .58246        .94578        .10851E-03   -1.5555    
  11  Prefactor     .10000E-03    14.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7941        1.5898        .83357E-04   -1.5374    
  13  Prefactor     20.626        19.848        .88197E-04   -1.4799    
  14  Prefactor     12.105        10.023        .11514E-03   -1.5012    
  15  Prefactor     5.5922        12.395        .16989E-03   -1.5235    
  16  Prefactor     .14852        .11459        .26257E-03   -1.5631    
  17  Prefactor     4.9190        6.4421        .18134E-03   -1.5264    
  18  Prefactor     .10000E-03    2.1982        .13185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6209        10.706        .68260E-03   -1.5121    
  20  Prefactor     .10000E-03    9.9027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .52233        16.501        .28024E-02   -1.5563    
  23  Prefactor     .10000E-03    47.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5073        .22858        .26422E-03   -.77572    
  25  Prefactor     .65967        .11581        .20535E-03   -1.0513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64092e-09
Minuit parameter uncertainties:
  1  0.000191737
  2  0.882055
  3  11.8223
  4  3.76979e-07
  5  10.2938
  6  0.000208588
  7  10.6287
  8  0.0781765
  9  11.1
  10  0.945806
  11  0.000332149
  12  1.58983
  13  19.8547
  14  10.0244
  15  12.4008
  16  0.114593
  17  6.44299
  18  1.0025e-06
  19  10.7089
  20  2.60955e-05
  21  4.29496e-07
  22  5.87281
  23  8.99756e-05
  24  0.228737
  25  0.115848
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.210e+01  1.002e+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:  6.597e-01  1.158e-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.507e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.33e-05

TS (Fixed Index): 3.88
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484988/likelihoodResults_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.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) = 8339.32200795
delta logL = 0.084378492571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8339.31593823
delta logL = 0.0904482139031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1780       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6504       1.0000          .0000       10.000    
     3 'Normalizat'    1.4801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66764       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=   8339.316     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      283 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1638        128.99        .33073E-02   -.12901E-03
   2  Index         2.6532        3.2697        .12521        .12010E-03
   3  Normalizat    1.4794        .90060E-01    .60183E-01   -.15726E-03
   4  Prefactor     .66813        .35732E-01    .41969E-01   -.12155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.16378
  Index      = 2.6532
  Normalizat = 1.47942
  Prefactor  = 0.668127
 **********
 **   18 **HESSE 
 **********

 FCN=   8339.316     FROM HESSE     STATUS=OK            31 CALLS      314 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1638        13.311        .13229E-03   -1.5102    
   2  Index         2.6532        1.0138        .67009E-02   -.48857    
   3  Normalizat    1.4794        .22980        .26616E-03   -.78358    
   4  Prefactor     .66813        .11822        .20413E-03   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67749e-11
Minuit parameter uncertainties:
  1  13.3153
  2  1.02288
  3  0.229965
  4  0.118268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484988': 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): 0
logL (Free Index) = 8339.31592031
delta logL = 0.0904661350778

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  9.164e+00  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.653e+00  1.023e+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:  6.681e-01  1.183e-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.479e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.65 +/- 1.02
Photon Flux (Free Index): 6.48e-08 +/- 7.06e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.14e-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/484988/cmap_HighResolution_646012801_646272001_4FGL_J2248.9+2106_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='1.62e-05', photon_flux_error='3.50e-08', dlogl='9.05e-02', energy_flux='1.61e-05', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-28 21:31:54.253945', photon_index_error2='1.02', photon_index2='2.65', ts='3.88', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.14e-05', EG='1.51', time_epoch_completed='1632889914.25', return_code='0', job_id='484988', GAL2='0.67', EG2='1.48', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='7.06e-08', ts2='4.08', photon_index='2.30' WHERE bin_id='1569' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 484988: <4FGL_J2248.9+2106_daily_bin1569> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1569 342.246 21.1159 646012801 646272001 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 :                                   794.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

