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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1397
RA = 342.246, Dec = 21.1159
tmin = 601430401, tmax = 601689601
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='483651', job_status='RUN', time_executed='2021-09-28 21:13:24.635129', time_epoch_executed='1632888804.64' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483651/ft1_4FGL_J2248.9+2106_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483651/ft2_4FGL_J2248.9+2106_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483651/ft1_4FGL_J2248.9+2106_daily_bin1397.fits outfile=/scratch/kocevski/483651/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1397.fits ra=342.246 dec=21.1159 rad=12.0 tmin=601430401.0 tmax=601689601.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483651/ft2_4FGL_J2248.9+2106_daily_bin1397.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/483651/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1397.fits evtable="EVENTS" outfile="/scratch/kocevski/483651/ft1_filtered_4FGL_J2248.9+2106_daily_bin1397.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.50
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483651/ft1_filtered_4FGL_J2248.9+2106_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/483651/ft2_4FGL_J2248.9+2106_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/483651/ltcube_601430401_601689601_4FGL_J2248.9+2106_daily_bin1397.fits outfile=/scratch/kocevski/483651/expmap_601430401_601689601_4FGL_J2248.9+2106_daily_bin1397.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/483651/ltcube_601430401_601689601_4FGL_J2248.9+2106_daily_bin1397.fits
.....................!
real 194.33
user 188.58
sys 5.38

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/483651/ft1_filtered_4FGL_J2248.9+2106_daily_bin1397.fits scfile=/scratch/kocevski/483651/ft2_4FGL_J2248.9+2106_daily_bin1397.fits outfile=/scratch/kocevski/483651/cmap_601430401_601689601_4FGL_J2248.9+2106_daily_bin1397.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/483651/ft1_filtered_4FGL_J2248.9+2106_daily_bin1397.fits scfile=/scratch/kocevski/483651/ft2_4FGL_J2248.9+2106_daily_bin1397.fits outfile=/scratch/kocevski/483651/cmap_HighResolution_601430401_601689601_4FGL_J2248.9+2106_daily_bin1397.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14280E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4326       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6978       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.761       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34420       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5886       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.981       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12239E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.021       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68769       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0789       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=   8166.391     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2930 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10318E-03    53.273       -.78468E-05** at limit **
   2  norm          .10000E-03    .35693        .44047E-07** at limit **
   3  Prefactor     3.4216        12.817        .92732E-06    .10730E-03
   4  norm          .10000E-03    2.3801        .51264E-07** at limit **
   5  Prefactor     6.7713        16.735       -.33194E-06   -.16165E-03
   6  Prefactor     .10000E-03    19.960       -.51154E-06** at limit **
   7  Prefactor     .10000E-03    10.830        .17427E-06** at limit **
   8  Prefactor     .69642        .21630        .19127E-07   -.31787E-03
   9  Prefactor     6.6977        6.4880       -.23098E-05   -.10367E-02
  10  norm          1.9086        1.3085        .98714E-07    .34857E-03
  11  Prefactor     .10000E-03    28.007       -.13737E-06** at limit **
  12  norm          2.7753        1.9084        .10993E-07    .78173E-04
  13  Prefactor     .10000E-03    9.7332        .11889E-06** at limit **
  14  Prefactor     69.753        17.736        .23105E-06    .57042E-03
  15  Prefactor     .10000E-03    5.2817        .48499E-08** at limit **
  16  Prefactor     .34433        .13580        .52567E-08    .33615E-03
  17  Prefactor     .10000E-03    8.7382        .15766E-06** at limit **
  18  Prefactor     6.5899        6.2923        .19214E-06    .15533E-03
  19  Prefactor     23.615        15.371       -.33931E-06   -.36362E-03
  20  Prefactor     20.006        23.421       -.53956E-06   -.25396E-03
  21  Prefactor     .10000E-03    18.959        .47543E-06** at limit **
  22  Prefactor     12.034        6.7858        .61357E-07    .28527E-04
  23  Prefactor     .10000E-03    4.9305        .11446E-07** at limit **
  24  Normalizat    .68695        .22697       -.24877E-06    .60558E-04
  25  Prefactor     1.0790        .11969       -.39942E-07    .15470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103176
  norm       = 0.0001
  Prefactor  = 3.42161
  norm       = 0.0001
  Prefactor  = 6.77134
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.696416
  Prefactor  = 6.69773
  norm       = 1.90859
  Prefactor  = 0.0001
  norm       = 2.77533
  Prefactor  = 0.0001
  Prefactor  = 69.7525
  Prefactor  = 0.0001
  Prefactor  = 0.344333
  Prefactor  = 0.0001
  Prefactor  = 6.58989
  Prefactor  = 23.6153
  Prefactor  = 20.0058
  Prefactor  = 0.000100001
  Prefactor  = 12.0338
  Prefactor  = 0.0001
  Normalizat = 0.686955
  Prefactor  = 1.07902
 **********
 **   18 **HESSE 
 **********

 FCN=   8166.391     FROM HESSE     STATUS=OK           427 CALLS     3357 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10318E-03    217.07        .89183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .65213        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4216        12.808        .21832E-03   -1.5338    
   4  norm          .10000E-03    2.4025        .13610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7713        16.774        .15432E-03   -1.5187    
   6  Prefactor     .10000E-03    19.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .69642        .21590        .21938E-04   -1.5541    
   9  Prefactor     6.6977        6.6698        .77524E-03   -1.5190    
  10  norm          1.9086        1.2952        .79566E-04   -1.5432    
  11  Prefactor     .10000E-03    28.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7753        1.9048        .98681E-04   -1.5375    
  13  Prefactor     .10000E-03    9.7440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     69.753        17.754        .48060E-04   -1.4036    
  15  Prefactor     .10000E-03    5.2842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .34433        .13453        .19861E-04   -1.5591    
  17  Prefactor     .10000E-03    8.8419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5899        6.2843        .15634E-03   -1.5194    
  19  Prefactor     23.615        15.413        .82448E-04   -1.4736    
  20  Prefactor     20.006        23.516        .89604E-04   -1.4813    
  21  Prefactor     .10000E-03    19.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.034        6.7819        .11554E-03   -1.5014    
  23  Prefactor     .10000E-03    4.9341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68695        .25228        .39933E-03   -1.0441    
  25  Prefactor     1.0790        .13569        .18221E-03   -.90140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47234e-08
Minuit parameter uncertainties:
  1  0.0527071
  2  2.05431e-06
  3  12.8185
  4  3.8777e-06
  5  16.7855
  6  0.000237174
  7  1.27548e-06
  8  0.215896
  9  6.67058
  10  1.29524
  11  7.98277e-05
  12  1.90488
  13  3.19764e-05
  14  17.7555
  15  5.29971e-07
  16  0.134527
  17  9.69323e-06
  18  6.28493
  19  15.4151
  20  23.527
  21  0.000242845
  22  6.78235
  23  7.14101e-07
  24  0.252708
  25  0.135729
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.975e+01  1.776e+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.079e+00  1.357e-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:  6.870e-01  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 42.60
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.44e-07 +/- 6.20e-08
Energy Flux (Fixed Index): 9.26e-05 +/- 2.36e-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) = 8166.39141134
delta logL = 1.25154756461e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8166.39139179
delta logL = 3.20603394357e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.606       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3000       1.0000          .0000       10.000    
     3 'Normalizat'    .68673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0790       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=   8166.391     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      254 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.594        27.037        .48113E-04    .12594E-03
   2  Index         2.2999        .23338        .28499E-02    .17084E-03
   3  Normalizat    .68662        .24367        .39942E-03    .18384E-03
   4  Prefactor     1.0791        .13533        .18221E-03    .35564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.5935
  Index      = 2.29986
  Normalizat = 0.686622
  Prefactor  = 1.07913
 **********
 **   18 **HESSE 
 **********

 FCN=   8166.391     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.594        26.051        .96227E-05   -1.4038    
   2  Index         2.2999        .22472        .11400E-03   -.57047    
   3  Normalizat    .68662        .24360        .15977E-04   -1.0442    
   4  Prefactor     1.0791        .13534        .36441E-04   -.90136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82401e-11
Minuit parameter uncertainties:
  1  26.0548
  2  0.22483
  3  0.243981
  4  0.135385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483651': 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) = 8166.39139037
delta logL = 3.34865108016e-05

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.959e+01  2.605e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.300e+00  2.248e-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.079e+00  1.354e-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:  6.866e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.68
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.30 +/- 0.22
Photon Flux (Free Index): 2.44e-07 +/- 7.04e-08
Energy Flux (Free Index): 9.24e-05 +/- 2.99e-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/483651/cmap_HighResolution_601430401_601689601_4FGL_J2248.9+2106_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.44e-07', energy_flux2='9.24e-05', photon_flux_error='6.20e-08', dlogl='3.35e-05', energy_flux='9.26e-05', photon_flux2='2.44e-07', job_status='DONE', time_completed='2021-09-28 21:25:36.814759', photon_index_error2='0.22', photon_index2='2.30', ts='42.60', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='0.69', time_epoch_completed='1632889536.81', return_code='0', job_id='483651', GAL2='1.08', EG2='0.69', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='7.04e-08', ts2='42.68', photon_index='2.30' WHERE bin_id='1397' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:25:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 483651: <4FGL_J2248.9+2106_daily_bin1397> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1397 342.246 21.1159 601430401 601689601 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 :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

