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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1419
RA = 342.246, Dec = 21.1159
tmin = 607132801, tmax = 607392001
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='483686', job_status='RUN', time_executed='2021-09-28 21:13:07.623135', time_epoch_executed='1632888787.62' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483686/ft1_4FGL_J2248.9+2106_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483686/ft2_4FGL_J2248.9+2106_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483686/ft1_4FGL_J2248.9+2106_daily_bin1419.fits outfile=/scratch/kocevski/483686/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1419.fits ra=342.246 dec=21.1159 rad=12.0 tmin=607132801.0 tmax=607392001.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 5.36
user 5.10
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483686/ft1_filtered_4FGL_J2248.9+2106_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/483686/ft2_4FGL_J2248.9+2106_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/483686/ltcube_607132801_607392001_4FGL_J2248.9+2106_daily_bin1419.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/483686/ft2_4FGL_J2248.9+2106_daily_bin1419.fits
.....................!
real 11.49
user 11.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483686/ft1_filtered_4FGL_J2248.9+2106_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/483686/ft2_4FGL_J2248.9+2106_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/483686/ltcube_607132801_607392001_4FGL_J2248.9+2106_daily_bin1419.fits outfile=/scratch/kocevski/483686/expmap_607132801_607392001_4FGL_J2248.9+2106_daily_bin1419.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/483686/ltcube_607132801_607392001_4FGL_J2248.9+2106_daily_bin1419.fits
.....................!
real 189.61
user 185.18
sys 4.11

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/483686/ft1_filtered_4FGL_J2248.9+2106_daily_bin1419.fits scfile=/scratch/kocevski/483686/ft2_4FGL_J2248.9+2106_daily_bin1419.fits outfile=/scratch/kocevski/483686/cmap_607132801_607392001_4FGL_J2248.9+2106_daily_bin1419.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/483686/ft1_filtered_4FGL_J2248.9+2106_daily_bin1419.fits scfile=/scratch/kocevski/483686/ft2_4FGL_J2248.9+2106_daily_bin1419.fits outfile=/scratch/kocevski/483686/cmap_HighResolution_607132801_607392001_4FGL_J2248.9+2106_daily_bin1419.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9643       1.0000         .10000E-03   10000.    
     2 'norm      '    .12625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19360       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71863E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.461       1.0000         .10000E-03   10000.    
    12 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25089       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.526       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.790       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13786E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7496       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94340       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0297       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=   7044.036     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3014 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9487        61.008       -.11023E-04   -.23641E-05
   2  norm          .12648        .83864       -.72531E-07   -.12166E-02
   3  Prefactor     .10000E-03    11.173       -.14132E-05** at limit **
   4  norm          .10000E-03    5.8202        .33938E-06** at limit **
   5  Prefactor     .10314        14.631       -.40829E-06    .83387E-05
   6  Prefactor     .10000E-03    120.01        .56791E-05** at limit **
   7  Prefactor     25.743        15.521       -.88843E-05    .30896E-04
   8  Prefactor     .72031E-01    .16702       -.13810E-06   -.45358E-02
   9  Prefactor     11.180        9.1986        .88573E-07    .42509E-04
  10  norm          1.8056        1.2001       -.59064E-07   -.20458E-03
  11  Prefactor     24.458        24.447        .51004E-06   -.41215E-05
  12  norm          .10000E-03    1.1187        .36127E-07** at limit **
  13  Prefactor     .10000E-03    15.467       -.11925E-05** at limit **
  14  Prefactor     27.595        15.424        .53476E-06    .17282E-04
  15  Prefactor     .10000E-03    10.081        .12818E-06** at limit **
  16  Prefactor     .25088        .15473       -.69132E-07   -.10403E-02
  17  Prefactor     .10000E-03    5.8517        .11760E-06** at limit **
  18  Prefactor     13.857        10.781        .14049E-05    .16150E-05
  19  Prefactor     .10000E-03    17.818        .15938E-06** at limit **
  20  Prefactor     23.514        30.446       -.89052E-06    .32992E-05
  21  Prefactor     14.787        23.844        .22163E-05   -.48735E-05
  22  Prefactor     .10001E-03    4.3304       -.65234E-06** at limit **
  23  Prefactor     1.7430        94.794        .11233E-04   -.42866E-04
  24  Normalizat    .94356        .25197        .33272E-05    .43930E-04
  25  Prefactor     1.0296        .12770       -.12003E-06    .24799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.94872
  norm       = 0.126477
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.103141
  Prefactor  = 0.0001
  Prefactor  = 25.7434
  Prefactor  = 0.0720308
  Prefactor  = 11.1796
  norm       = 1.80556
  Prefactor  = 24.4581
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.595
  Prefactor  = 0.0001
  Prefactor  = 0.250878
  Prefactor  = 0.0001
  Prefactor  = 13.8574
  Prefactor  = 0.0001
  Prefactor  = 23.5143
  Prefactor  = 14.7869
  Prefactor  = 0.000100015
  Prefactor  = 1.74296
  Normalizat = 0.943563
  Prefactor  = 1.02963
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.036     FROM HESSE     STATUS=OK           447 CALLS     3461 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9487        61.145        .14208E-03   -1.5144    
   2  norm          .12648        1.9557        .14668E-02   -1.5637    
   3  Prefactor     .10000E-03    11.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.0623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10314        18.003        .83674E-01   -1.5644    
   6  Prefactor     .10000E-03    120.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.743        15.444        .78942E-04   -1.4693    
   8  Prefactor     .72031E-01    .15160        .46151E-03   -1.5654    
   9  Prefactor     11.180        9.1566        .11982E-03   -1.5039    
  10  norm          1.8056        1.1943        .69993E-04   -1.5439    
  11  Prefactor     24.458        24.430        .80992E-04   -1.4718    
  12  norm          .10000E-03    1.7931        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.595        15.005        .76256E-04   -1.4657    
  15  Prefactor     .10000E-03    10.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .25088        .15103        .24134E-04   -1.5608    
  17  Prefactor     .10000E-03    5.8687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.857        10.738        .10760E-03   -1.4963    
  19  Prefactor     .10000E-03    18.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.514        30.450        .82585E-04   -1.4738    
  21  Prefactor     14.787        23.808        .10415E-03   -1.4939    
  22  Prefactor     .10001E-03    11.792        .32307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7430        86.373        .31700E-03   -1.5444    
  24  Normalizat    .94356        .29096        .37251E-03   -.94946    
  25  Prefactor     1.0296        .15024        .19085E-03   -.91748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05924e-09
Minuit parameter uncertainties:
  1  44.1544
  2  0.994339
  3  6.46971e-05
  4  6.85311e-05
  5  2.72485
  6  3.63446e-05
  7  15.446
  8  0.151602
  9  9.15774
  10  1.19433
  11  24.4399
  12  2.85403e-06
  13  2.21879e-06
  14  15.0071
  15  9.24816e-06
  16  0.151029
  17  5.19795e-06
  18  10.7393
  19  8.1443e-05
  20  30.47
  21  23.8235
  22  0.000838375
  23  24.5763
  24  0.291453
  25  0.150299
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.760e+01  1.501e+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:  1.030e+00  1.503e-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.436e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.22
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 9.64e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.99e-05

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) = 7043.9843746
delta logL = 0.0512302771667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7043.97065271
delta logL = 0.0649521752166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.688       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1481       1.0000          .0000       10.000    
     3 'Normalizat'    .95620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0258       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=   7043.971     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      273 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.681        20.437        .71180E-04    .13046E-03
   2  Index         2.1485        .41762        .56210E-02    .37514E-03
   3  Normalizat    .95643        .27797        .37031E-03    .62874E-04
   4  Prefactor     1.0256        .14819        .19119E-03    .10022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.6809
  Index      = 2.14847
  Normalizat = 0.956427
  Prefactor  = 1.02558
 **********
 **   18 **HESSE 
 **********

 FCN=   7043.971     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.681        20.056        .14236E-04   -1.4582    
   2  Index         2.1485        .40965        .11242E-02   -.60688    
   3  Normalizat    .95643        .27806        .14812E-04   -.94505    
   4  Prefactor     1.0256        .14827        .38238E-04   -.91882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22171e-11
Minuit parameter uncertainties:
  1  20.0607
  2  0.410334
  3  0.278479
  4  0.148325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483686': 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) = 7043.97065132
delta logL = 0.0649535647599

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.168e+01  2.006e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.148e+00  4.103e-01  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.026e+00  1.483e-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.564e-01  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.33
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.15 +/- 0.41
Photon Flux (Free Index): 8.40e-08 +/- 5.86e-08
Energy Flux (Free Index): 4.17e-05 +/- 2.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/483686/cmap_HighResolution_607132801_607392001_4FGL_J2248.9+2106_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.64e-08', energy_flux2='4.17e-05', photon_flux_error='5.24e-08', dlogl='6.50e-02', energy_flux='3.66e-05', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-09-28 21:24:14.521718', photon_index_error2='0.41', photon_index2='2.15', ts='7.22', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='0.94', time_epoch_completed='1632889454.52', return_code='0', job_id='483686', GAL2='1.03', EG2='0.96', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='5.86e-08', ts2='7.33', photon_index='2.30' WHERE bin_id='1419' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:24:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 483686: <4FGL_J2248.9+2106_daily_bin1419> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1419 342.246 21.1159 607132801 607392001 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

