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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1314
RA = 342.246, Dec = 21.1159
tmin = 579916801, tmax = 580176001
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='483514', job_status='RUN', time_executed='2021-09-28 21:11:49.657184', time_epoch_executed='1632888709.66' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483514/ft1_4FGL_J2248.9+2106_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483514/ft2_4FGL_J2248.9+2106_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483514/ft1_4FGL_J2248.9+2106_daily_bin1314.fits outfile=/scratch/kocevski/483514/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1314.fits ra=342.246 dec=21.1159 rad=12.0 tmin=579916801.0 tmax=580176001.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.49
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483514/ft1_filtered_4FGL_J2248.9+2106_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/483514/ft2_4FGL_J2248.9+2106_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/483514/ltcube_579916801_580176001_4FGL_J2248.9+2106_daily_bin1314.fits outfile=/scratch/kocevski/483514/expmap_579916801_580176001_4FGL_J2248.9+2106_daily_bin1314.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/483514/ltcube_579916801_580176001_4FGL_J2248.9+2106_daily_bin1314.fits
.....................!
real 191.78
user 185.99
sys 5.45

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/483514/ft1_filtered_4FGL_J2248.9+2106_daily_bin1314.fits scfile=/scratch/kocevski/483514/ft2_4FGL_J2248.9+2106_daily_bin1314.fits outfile=/scratch/kocevski/483514/cmap_579916801_580176001_4FGL_J2248.9+2106_daily_bin1314.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483514/ft1_filtered_4FGL_J2248.9+2106_daily_bin1314.fits scfile=/scratch/kocevski/483514/ft2_4FGL_J2248.9+2106_daily_bin1314.fits outfile=/scratch/kocevski/483514/cmap_HighResolution_579916801_580176001_4FGL_J2248.9+2106_daily_bin1314.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.888       1.0000         .10000E-03   10000.    
     2 'norm      '    .10887       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8795       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50543       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8917       1.0000         .10000E-03   10000.    
    10 'norm      '    5.8761       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3506       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.809       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95338       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93378       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=   10328.18     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2512 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.887        28.324       -.13543E-05   -.12763E-04
   2  norm          .10902        .40034       -.11879E-07   -.50536E-03
   3  Prefactor     .10000E-03    2.4454        .70277E-08** at limit **
   4  norm          3.8029        3.6134       -.12190E-06   -.81496E-04
   5  Prefactor     .10000E-03    12.977       -.79436E-07** at limit **
   6  Prefactor     .10000E-03    31.332       -.39118E-05** at limit **
   7  Prefactor     9.8812        11.201       -.10947E-08   -.10433E-04
   8  Prefactor     .50549        .18995       -.14660E-08   -.18860E-03
   9  Prefactor     5.8913        7.6834        .30080E-08   -.17002E-04
  10  norm          5.8762        1.3756        .84429E-09    .46946E-04
  11  Prefactor     .10000E-03    5.1159        .68602E-07** at limit **
  12  norm          2.5044        1.6860        .73679E-09   -.31731E-04
  13  Prefactor     .10000E-03    12.668        .14635E-05** at limit **
  14  Prefactor     30.934        12.929        .27400E-08   -.48337E-04
  15  Prefactor     .10000E-03    9.2260       -.32387E-06** at limit **
  16  Prefactor     1.2609        .20247       -.36352E-08   -.29042E-03
  17  Prefactor     5.3508        5.2159        .74012E-10    .31524E-04
  18  Prefactor     3.5309        2.6664        .32027E-06   -.14283E-02
  19  Prefactor     .10000E-03    4.1336        .93794E-08** at limit **
  20  Prefactor     .10000E-03    18.029       -.42762E-05** at limit **
  21  Prefactor     .10000E-03    4.5170       -.67717E-07** at limit **
  22  Prefactor     17.806        7.9536       -.76163E-09   -.49242E-03
  23  Prefactor     .10000E-03    24.257        .66934E-05** at limit **
  24  Normalizat    .95321        .20694        .68559E-09   -.11881E-04
  25  Prefactor     .93387        .10315        .28137E-07   -.12570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8866
  norm       = 0.109022
  Prefactor  = 0.0001
  norm       = 3.80287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.88122
  Prefactor  = 0.505488
  Prefactor  = 5.89133
  norm       = 5.87622
  Prefactor  = 0.0001
  norm       = 2.50439
  Prefactor  = 0.0001
  Prefactor  = 30.9336
  Prefactor  = 0.0001
  Prefactor  = 1.26088
  Prefactor  = 5.35076
  Prefactor  = 3.53086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8061
  Prefactor  = 0.0001
  Normalizat = 0.953214
  Prefactor  = 0.933867
 **********
 **   18 **HESSE 
 **********

 FCN=   10328.18     FROM HESSE     STATUS=OK           433 CALLS     2945 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.887        28.346        .10048E-03   -1.4911    
   2  norm          .10902        .70109        .12095E-02   -1.5642    
   3  Prefactor     .10000E-03    2.4460        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8029        3.6081        .18180E-03   -1.5318    
   5  Prefactor     .10000E-03    13.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8812        11.245        .12749E-03   -1.5079    
   8  Prefactor     .50549        .18866        .25577E-04   -1.5566    
   9  Prefactor     5.8913        7.6883        .16544E-03   -1.5222    
  10  norm          5.8762        1.3776        .55334E-04   -1.5223    
  11  Prefactor     .10000E-03    5.1186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5044        1.6833        .10267E-03   -1.5391    
  13  Prefactor     .10000E-03    12.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.934        12.937        .36020E-03   -1.4595    
  15  Prefactor     .10000E-03    9.2421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2609        .20378        .17108E-04   -1.5483    
  17  Prefactor     5.3508        5.2197        .17374E-03   -1.5245    
  18  Prefactor     3.5309        5.2530        .10756E-02   -1.5332    
  19  Prefactor     .10000E-03    4.1514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.806        8.0424        .47453E-03   -1.4864    
  23  Prefactor     .10000E-03    24.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95321        .24229        .37342E-03   -.94615    
  25  Prefactor     .93387        .12085        .20047E-03   -.94968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87892e-08
Minuit parameter uncertainties:
  1  28.3697
  2  0.552689
  3  1.45402e-07
  4  3.60831
  5  9.11662e-07
  6  0.000101827
  7  11.2472
  8  0.188662
  9  7.68955
  10  1.37759
  11  5.82092e-07
  12  1.68335
  13  2.39075e-05
  14  12.9378
  15  4.87946e-06
  16  0.203775
  17  5.22019
  18  5.25364
  19  2.95592e-07
  20  7.53737e-05
  21  5.46307e-07
  22  8.04291
  23  8.38842e-05
  24  0.242564
  25  0.120883
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.093e+01  1.294e+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.339e-01  1.209e-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.532e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.06
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 4.52e-08
Energy Flux (Fixed Index): 4.11e-05 +/- 1.72e-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) = 10328.1804137
delta logL = 0.00392922551146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10328.1760595
delta logL = 0.00828343605463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.461       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3480       1.0000          .0000       10.000    
     3 'Normalizat'    .94746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93569       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=   10328.18     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      240 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.459        17.695        .73815E-04    .87130E-03
   2  Index         2.3481        .41371        .48353E-02    .33421E-03
   3  Normalizat    .94746        .22897        .37437E-03   -.19453E-03
   4  Prefactor     .93569        .12023        .20028E-03   -.41304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4594
  Index      = 2.34807
  Normalizat = 0.947459
  Prefactor  = 0.935692
 **********
 **   18 **HESSE 
 **********

 FCN=   10328.18     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.459        16.699        .14763E-04   -1.4622    
   2  Index         2.3481        .39003        .19341E-03   -.55906    
   3  Normalizat    .94746        .22864        .14975E-04   -.94812    
   4  Prefactor     .93569        .12018        .40056E-04   -.94905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83987e-10
Minuit parameter uncertainties:
  1  16.7014
  2  0.390579
  3  0.228873
  4  0.120218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483514': 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) = 10328.1760595
delta logL = 0.00828344010006

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.946e+01  1.670e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.348e+00  3.906e-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:  9.357e-01  1.202e-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.475e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.10
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.35 +/- 0.39
Photon Flux (Free Index): 1.13e-07 +/- 6.03e-08
Energy Flux (Free Index): 3.99e-05 +/- 1.82e-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/483514/cmap_HighResolution_579916801_580176001_4FGL_J2248.9+2106_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='3.99e-05', photon_flux_error='4.52e-08', dlogl='8.28e-03', energy_flux='4.11e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-28 21:25:08.235885', photon_index_error2='0.39', photon_index2='2.35', ts='17.06', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='0.95', time_epoch_completed='1632889508.24', return_code='0', job_id='483514', GAL2='0.94', EG2='0.95', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='6.03e-08', ts2='17.10', photon_index='2.30' WHERE bin_id='1314' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 483514: <4FGL_J2248.9+2106_daily_bin1314> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1314 342.246 21.1159 579916801 580176001 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 :                                   777.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

