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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1340
RA = 342.246, Dec = 21.1159
tmin = 586656001, tmax = 586915201
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='483554', job_status='RUN', time_executed='2021-09-28 21:14:19.046489', time_epoch_executed='1632888859.05' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483554

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483554/ft1_4FGL_J2248.9+2106_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483554/ft2_4FGL_J2248.9+2106_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483554/ft1_4FGL_J2248.9+2106_daily_bin1340.fits outfile=/scratch/kocevski/483554/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1340.fits ra=342.246 dec=21.1159 rad=12.0 tmin=586656001.0 tmax=586915201.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.65
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483554/ft2_4FGL_J2248.9+2106_daily_bin1340.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/483554/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1340.fits evtable="EVENTS" outfile="/scratch/kocevski/483554/ft1_filtered_4FGL_J2248.9+2106_daily_bin1340.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/483554/ft1_filtered_4FGL_J2248.9+2106_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/483554/ft2_4FGL_J2248.9+2106_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/483554/ltcube_586656001_586915201_4FGL_J2248.9+2106_daily_bin1340.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/483554/ft2_4FGL_J2248.9+2106_daily_bin1340.fits
.....................!
real 11.70
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483554/ft1_filtered_4FGL_J2248.9+2106_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/483554/ft2_4FGL_J2248.9+2106_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/483554/ltcube_586656001_586915201_4FGL_J2248.9+2106_daily_bin1340.fits outfile=/scratch/kocevski/483554/expmap_586656001_586915201_4FGL_J2248.9+2106_daily_bin1340.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/483554/ltcube_586656001_586915201_4FGL_J2248.9+2106_daily_bin1340.fits
.....................!
real 189.76
user 185.46
sys 4.00

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483554/ft1_filtered_4FGL_J2248.9+2106_daily_bin1340.fits scfile=/scratch/kocevski/483554/ft2_4FGL_J2248.9+2106_daily_bin1340.fits outfile=/scratch/kocevski/483554/cmap_HighResolution_586656001_586915201_4FGL_J2248.9+2106_daily_bin1340.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4662       1.0000         .10000E-03   10000.    
     4 'norm      '    10.260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2191       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82843       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.172       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.410       1.0000         .10000E-03   10000.    
    12 'norm      '    .80417       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    67.067       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3154       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40529       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.660       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13630E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8092       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0107       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .56877       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2139       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=   8410.349     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2920 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.593        .15849E-04** at limit **
   2  norm          .10000E-03    .22120       -.21290E-07** at limit **
   3  Prefactor     2.4685        4.5485        .15017E-05   -.14340E-02
   4  norm          10.264        5.6347       -.15302E-05   -.42029E-03
   5  Prefactor     9.2263        15.521       -.11438E-05   -.44054E-04
   6  Prefactor     .10000E-03    41.735       -.13137E-05** at limit **
   7  Prefactor     .10000E-03    12.124       -.30205E-06** at limit **
   8  Prefactor     .82852        .23763        .24375E-07    .48253E-04
   9  Prefactor     17.173        12.375       -.12000E-07    .41961E-05
  10  norm          3.5443        1.3963       -.31173E-07   -.11498E-03
  11  Prefactor     12.415        21.714        .94818E-06    .11164E-04
  12  norm          .80454        1.5111       -.16195E-07   -.44699E-03
  13  Prefactor     .10000E-03    28.413        .10643E-05** at limit **
  14  Prefactor     67.057        17.464        .62180E-06    .17374E-04
  15  Prefactor     .10000E-03    15.247        .24035E-06** at limit **
  16  Prefactor     1.3156        .22021        .14530E-08   -.15947E-03
  17  Prefactor     .54867        6.9879        .11460E-05   -.47572E-03
  18  Prefactor     9.2932        7.2580       -.24488E-06   -.46875E-04
  19  Prefactor     11.664        12.021        .12829E-07   -.85245E-05
  20  Prefactor     .10000E-03    71.992       -.10326E-04** at limit **
  21  Prefactor     7.8012        25.640       -.16158E-05   -.29351E-05
  22  Prefactor     8.0121        5.6292        .10313E-05    .17234E-03
  23  Prefactor     .10000E-03    6.4181       -.28057E-07** at limit **
  24  Normalizat    .56842        .24752       -.85806E-06   -.47651E-04
  25  Prefactor     1.2138        .13474        .19875E-06   -.10220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 2.46846
  norm       = 10.2636
  Prefactor  = 9.22632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.82852
  Prefactor  = 17.1735
  norm       = 3.54429
  Prefactor  = 12.4151
  norm       = 0.804544
  Prefactor  = 0.0001
  Prefactor  = 67.0575
  Prefactor  = 0.0001
  Prefactor  = 1.31558
  Prefactor  = 0.54867
  Prefactor  = 9.29321
  Prefactor  = 11.664
  Prefactor  = 0.000100001
  Prefactor  = 7.80116
  Prefactor  = 8.01209
  Prefactor  = 0.0001
  Normalizat = 0.568425
  Prefactor  = 1.21381
 **********
 **   18 **HESSE 
 **********

 FCN=   8410.349     FROM HESSE     STATUS=OK           435 CALLS     3355 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .22275        .42104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4685        8.8736        .13020E-02   -1.5394    
   4  norm          10.264        5.6627        .12509E-03   -1.5067    
   5  Prefactor     9.2263        15.530        .13200E-03   -1.5100    
   6  Prefactor     .10000E-03    41.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .82852        .23738        .22454E-04   -1.5526    
   9  Prefactor     17.173        12.390        .96652E-04   -1.4879    
  10  norm          3.5443        1.3936        .62743E-04   -1.5331    
  11  Prefactor     12.415        21.724        .11371E-03   -1.5003    
  12  norm          .80454        1.2752        .14730E-02   -1.5529    
  13  Prefactor     .10000E-03    28.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     67.057        17.266        .49009E-04   -1.4068    
  15  Prefactor     .10000E-03    15.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3156        .21993        .16574E-04   -1.5479    
  17  Prefactor     .54867        52.401        .45191E-02   -1.5560    
  18  Prefactor     9.2932        7.2568        .13148E-03   -1.5098    
  19  Prefactor     11.664        12.015        .11732E-03   -1.5025    
  20  Prefactor     .10000E-03    73.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8012        25.657        .14349E-03   -1.5149    
  22  Prefactor     8.0121        5.6225        .14166E-03   -1.5142    
  23  Prefactor     .10000E-03    6.4280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .56842        .25670        .47072E-03   -1.0934    
  25  Prefactor     1.2138        .14400        .18948E-03   -.85907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05736e-08
Minuit parameter uncertainties:
  1  0.000842191
  2  5.9157e-07
  3  8.87832
  4  5.66298
  5  15.5369
  6  6.21918e-05
  7  3.43423e-05
  8  0.23738
  9  12.3922
  10  1.39357
  11  21.7383
  12  1.2752
  13  4.14619e-05
  14  17.2669
  15  7.43788e-06
  16  0.219929
  17  10.7326
  18  7.25749
  19  12.0175
  20  0.000395712
  21  25.6931
  22  5.62291
  23  1.07785e-05
  24  0.257238
  25  0.144046
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.706e+01  1.727e+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.214e+00  1.440e-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:  5.684e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 42.54
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.34e-07 +/- 6.03e-08
Energy Flux (Fixed Index): 8.90e-05 +/- 2.29e-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) = 8410.23977562
delta logL = 0.109576912168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8410.22552637
delta logL = 0.123826162016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.399       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4241       1.0000          .0000       10.000    
     3 'Normalizat'    .54705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2218       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=   8410.226     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      290 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.375        27.253        .53416E-04   -.19198E-03
   2  Index         2.4238        .27570        .27232E-02   -.96629E-04
   3  Normalizat    .54695        .25227        .47903E-03   -.41343E-04
   4  Prefactor     1.2220        .14305        .18890E-03   -.41445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.375
  Index      = 2.42376
  Normalizat = 0.546951
  Prefactor  = 1.22204
 **********
 **   18 **HESSE 
 **********

 FCN=   8410.226     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.375        25.607        .10683E-04   -1.4205    
   2  Index         2.4238        .25895        .10893E-03   -.54130    
   3  Normalizat    .54695        .25195        .19161E-04   -1.1029    
   4  Prefactor     1.2220        .14295        .37780E-04   -.85656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27566e-10
Minuit parameter uncertainties:
  1  25.6116
  2  0.259109
  3  0.252481
  4  0.142993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483554': 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) = 8410.22551652
delta logL = 0.123836004559

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.638e+01  2.561e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.424e+00  2.591e-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.222e+00  1.430e-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:  5.470e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.75
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.42 +/- 0.26
Photon Flux (Free Index): 2.51e-07 +/- 6.97e-08
Energy Flux (Free Index): 7.98e-05 +/- 2.55e-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/483554/cmap_HighResolution_586656001_586915201_4FGL_J2248.9+2106_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-07', energy_flux2='7.98e-05', photon_flux_error='6.03e-08', dlogl='1.24e-01', energy_flux='8.90e-05', photon_flux2='2.51e-07', job_status='DONE', time_completed='2021-09-28 21:26:46.564588', photon_index_error2='0.26', photon_index2='2.42', ts='42.54', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.57', time_epoch_completed='1632889606.56', return_code='0', job_id='483554', GAL2='1.22', EG2='0.55', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='6.97e-08', ts2='42.75', photon_index='2.30' WHERE bin_id='1340' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:26:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 483554: <4FGL_J2248.9+2106_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1340 342.246 21.1159 586656001 586915201 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

