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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1377
RA = 342.246, Dec = 21.1159
tmin = 596246401, tmax = 596505601
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='483617', job_status='RUN', time_executed='2021-09-28 21:10:46.854421', time_epoch_executed='1632888646.85' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483617/ft1_4FGL_J2248.9+2106_daily_bin1377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483617/ft2_4FGL_J2248.9+2106_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483617/ft1_4FGL_J2248.9+2106_daily_bin1377.fits outfile=/scratch/kocevski/483617/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1377.fits ra=342.246 dec=21.1159 rad=12.0 tmin=596246401.0 tmax=596505601.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.92
user 4.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483617/ft1_filtered_4FGL_J2248.9+2106_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/483617/ft2_4FGL_J2248.9+2106_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/483617/ltcube_596246401_596505601_4FGL_J2248.9+2106_daily_bin1377.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/483617/ft2_4FGL_J2248.9+2106_daily_bin1377.fits
.....................!
real 11.70
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483617/ft1_filtered_4FGL_J2248.9+2106_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/483617/ft2_4FGL_J2248.9+2106_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/483617/ltcube_596246401_596505601_4FGL_J2248.9+2106_daily_bin1377.fits outfile=/scratch/kocevski/483617/expmap_596246401_596505601_4FGL_J2248.9+2106_daily_bin1377.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/483617/ltcube_596246401_596505601_4FGL_J2248.9+2106_daily_bin1377.fits
.....................!
real 189.43
user 185.01
sys 4.10

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/483617/ft1_filtered_4FGL_J2248.9+2106_daily_bin1377.fits scfile=/scratch/kocevski/483617/ft2_4FGL_J2248.9+2106_daily_bin1377.fits outfile=/scratch/kocevski/483617/cmap_596246401_596505601_4FGL_J2248.9+2106_daily_bin1377.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483617/ft1_filtered_4FGL_J2248.9+2106_daily_bin1377.fits scfile=/scratch/kocevski/483617/ft2_4FGL_J2248.9+2106_daily_bin1377.fits outfile=/scratch/kocevski/483617/cmap_HighResolution_596246401_596505601_4FGL_J2248.9+2106_daily_bin1377.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.246 yref=21.1159 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9064       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0075       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.734       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63112       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9477       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5305       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50141       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6969       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6439       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.513       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3270       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13201E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2071       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94351       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=   8465.660     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2923 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.873       -.13888E-06** at limit **
   2  norm          .10000E-03    .29880        .91632E-07** at limit **
   3  Prefactor     5.9041        16.268       -.81391E-06   -.12675E-04
   4  norm          5.0284        4.3026        .43515E-07   -.11963E-04
   5  Prefactor     7.0023        13.717        .50470E-06    .30717E-05
   6  Prefactor     59.490        100.62        .89280E-05    .40934E-05
   7  Prefactor     .10000E-03    9.7188       -.20252E-06** at limit **
   8  Prefactor     .63108        .20986       -.18216E-08   -.60311E-04
   9  Prefactor     .10000E-03    3.6340       -.73170E-09** at limit **
  10  norm          1.9473        1.1885       -.11394E-06   -.17022E-03
  11  Prefactor     .10000E-03    8.6819        .95614E-07** at limit **
  12  norm          1.2433        1.1935        .12045E-08   -.61172E-05
  13  Prefactor     .10000E-03    7.9321       -.53740E-07** at limit **
  14  Prefactor     49.995        15.141        .18408E-07   -.12399E-04
  15  Prefactor     6.5311        12.699        .88226E-07    .92586E-06
  16  Prefactor     .50139        .15264        .21829E-08   -.85505E-04
  17  Prefactor     16.719        11.695        .48869E-07   -.77285E-05
  18  Prefactor     2.6962        5.4188        .13475E-05    .18636E-04
  19  Prefactor     5.6428        10.588        .49302E-06    .70706E-05
  20  Prefactor     30.508        22.276        .14838E-06   -.88977E-05
  21  Prefactor     4.3283        16.404        .19520E-06   -.12346E-05
  22  Prefactor     .10000E-03    3.4688        .37532E-06** at limit **
  23  Prefactor     .10000E-03    12.365        .98136E-07** at limit **
  24  Normalizat    1.2074        .21892        .46331E-06   -.53469E-04
  25  Prefactor     .94333        .11601       -.69766E-06   -.29162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.90407
  norm       = 5.02842
  Prefactor  = 7.00232
  Prefactor  = 59.4903
  Prefactor  = 0.0001
  Prefactor  = 0.631081
  Prefactor  = 0.0001
  norm       = 1.94729
  Prefactor  = 0.0001
  norm       = 1.24327
  Prefactor  = 0.0001
  Prefactor  = 49.9951
  Prefactor  = 6.53113
  Prefactor  = 0.501391
  Prefactor  = 16.7187
  Prefactor  = 2.69615
  Prefactor  = 5.64282
  Prefactor  = 30.5076
  Prefactor  = 4.32831
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.20739
  Prefactor  = 0.943334
 **********
 **   18 **HESSE 
 **********

 FCN=   8465.660     FROM HESSE     STATUS=OK           439 CALLS     3362 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .52391        .97520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9041        16.249        .16523E-03   -1.5222    
   4  norm          5.0284        4.2961        .17050E-03   -1.5259    
   5  Prefactor     7.0023        13.735        .75774E-03   -1.5179    
   6  Prefactor     59.490        101.06        .25956E-03   -1.4164    
   7  Prefactor     .10000E-03    9.8446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .63108        .20901        .22759E-04   -1.5549    
   9  Prefactor     .10000E-03    3.6364        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9473        1.1828        .74065E-04   -1.5429    
  11  Prefactor     .10000E-03    8.6939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2433        1.2145        .95084E-04   -1.5485    
  13  Prefactor     .10000E-03    7.9346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.995        15.130        .56715E-04   -1.4293    
  15  Prefactor     6.5311        12.693        .15704E-03   -1.5197    
  16  Prefactor     .50139        .15214        .18767E-04   -1.5566    
  17  Prefactor     16.719        11.694        .97952E-04   -1.4890    
  18  Prefactor     2.6962        5.4424        .12403E-02   -1.5380    
  19  Prefactor     5.6428        10.573        .84546E-03   -1.5233    
  20  Prefactor     30.508        22.305        .72534E-04   -1.4603    
  21  Prefactor     4.3283        16.391        .19365E-03   -1.5292    
  22  Prefactor     .10000E-03    16.543        .32454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2074        .25403        .33031E-03   -.86375    
  25  Prefactor     .94333        .13477        .20398E-03   -.94643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59435e-10
Minuit parameter uncertainties:
  1  4.34779e-06
  2  2.57882e-06
  3  16.2616
  4  4.2964
  5  13.7414
  6  101.358
  7  4.79021e-06
  8  0.209011
  9  1.01142e-07
  10  1.18278
  11  2.84541e-07
  12  1.21454
  13  7.13491e-07
  14  15.1316
  15  12.6977
  16  0.15214
  17  11.6958
  18  5.4434
  19  10.5761
  20  22.3114
  21  16.408
  22  0.000523196
  23  2.30494e-06
  24  0.254293
  25  0.134819
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.000e+01  1.513e+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.433e-01  1.348e-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.207e+00  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.66
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.75e-07 +/- 5.28e-08
Energy Flux (Fixed Index): 6.64e-05 +/- 2.01e-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) = 8465.6564416
delta logL = 0.00363909571206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8465.65029997
delta logL = 0.0097807249258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.436       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2596       1.0000          .0000       10.000    
     3 'Normalizat'    1.2126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94145       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=   8465.650     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.441        24.437        .55387E-04   -.21257E-03
   2  Index         2.2597        .28424        .35291E-02   -.40467E-04
   3  Normalizat    1.2127        .24529        .32972E-03   -.17205E-03
   4  Prefactor     .94143        .13482        .20416E-03   -.24327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.441
  Index      = 2.25969
  Normalizat = 1.21266
  Prefactor  = 0.941433
 **********
 **   18 **HESSE 
 **********

 FCN=   8465.650     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.441        23.445        .11077E-04   -1.4258    
   2  Index         2.2597        .27256        .14116E-03   -.58005    
   3  Normalizat    1.2127        .24526        .13189E-04   -.86212    
   4  Prefactor     .94143        .13486        .40833E-04   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31716e-11
Minuit parameter uncertainties:
  1  23.4494
  2  0.272751
  3  0.245492
  4  0.134907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483617': 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) = 8465.65029976
delta logL = 0.00978093360754

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.244e+01  2.345e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.260e+00  2.728e-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.414e-01  1.349e-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.213e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.66
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.26 +/- 0.27
Photon Flux (Free Index): 1.71e-07 +/- 5.95e-08
Energy Flux (Free Index): 6.89e-05 +/- 2.83e-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/483617/cmap_HighResolution_596246401_596505601_4FGL_J2248.9+2106_daily_bin1377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-07', energy_flux2='6.89e-05', photon_flux_error='5.28e-08', dlogl='9.78e-03', energy_flux='6.64e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-28 21:23:28.241424', photon_index_error2='0.27', photon_index2='2.26', ts='26.66', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.21', time_epoch_completed='1632889408.24', return_code='0', job_id='483617', GAL2='0.94', EG2='1.21', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='5.95e-08', ts2='26.66', photon_index='2.30' WHERE bin_id='1377' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:23:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 483617: <4FGL_J2248.9+2106_daily_bin1377> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1377 342.246 21.1159 596246401 596505601 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            776 sec.

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

