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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1488
RA = 342.246, Dec = 21.1159
tmin = 625017601, tmax = 625276801
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='484869', job_status='RUN', time_executed='2021-09-28 21:17:58.680562', time_epoch_executed='1632889078.68' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484869

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484869/ft1_4FGL_J2248.9+2106_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484869/ft2_4FGL_J2248.9+2106_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484869/ft1_4FGL_J2248.9+2106_daily_bin1488.fits outfile=/scratch/kocevski/484869/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1488.fits ra=342.246 dec=21.1159 rad=12.0 tmin=625017601.0 tmax=625276801.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.59
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484869/ft1_filtered_4FGL_J2248.9+2106_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/484869/ft2_4FGL_J2248.9+2106_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/484869/ltcube_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.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/484869/ft2_4FGL_J2248.9+2106_daily_bin1488.fits
.....................!
real 13.23
user 12.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484869/ft1_filtered_4FGL_J2248.9+2106_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/484869/ft2_4FGL_J2248.9+2106_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/484869/ltcube_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.fits outfile=/scratch/kocevski/484869/expmap_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.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/484869/ltcube_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.fits
.....................!
real 190.62
user 185.43
sys 4.86

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/484869/ft1_filtered_4FGL_J2248.9+2106_daily_bin1488.fits scfile=/scratch/kocevski/484869/ft2_4FGL_J2248.9+2106_daily_bin1488.fits outfile=/scratch/kocevski/484869/cmap_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484869/ft1_filtered_4FGL_J2248.9+2106_daily_bin1488.fits scfile=/scratch/kocevski/484869/ft2_4FGL_J2248.9+2106_daily_bin1488.fits outfile=/scratch/kocevski/484869/cmap_HighResolution_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.883       1.0000         .10000E-03   10000.    
     2 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.513       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4328       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8808       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.665       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36830       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3541       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7053       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3680       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86400       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96175       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=   7824.485     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2928 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.850        63.699       -.45710E-04    .10399E-04
   2  norm          .10000E-03    .52171        .58615E-07** at limit **
   3  Prefactor     .10000E-03    5.3930        .28577E-07** at limit **
   4  norm          .10000E-03    7.0317        .11326E-05** at limit **
   5  Prefactor     .10000E-03    20.378       -.15700E-05** at limit **
   6  Prefactor     69.086        84.212       -.52951E-04    .13853E-05
   7  Prefactor     .10000E-03    11.440        .20437E-06** at limit **
   8  Prefactor     .54424        .21757       -.12955E-06    .14931E-03
   9  Prefactor     15.513        11.981       -.30468E-06   -.68146E-05
  10  norm          1.4329        .94347        .68794E-07    .13718E-03
  11  Prefactor     .10000E-03    9.6615        .43225E-05** at limit **
  12  norm          1.8800        1.9271        .82297E-10   -.26819E-03
  13  Prefactor     .10000E-03    12.013       -.28130E-05** at limit **
  14  Prefactor     13.663        16.285       -.27416E-05   -.81286E-03
  15  Prefactor     .10000E-03    29.985       -.41712E-06** at limit **
  16  Prefactor     .36826        .13839       -.77377E-07    .90822E-03
  17  Prefactor     7.3444        14.604       -.35085E-05   -.97939E-05
  18  Prefactor     10.892        8.3089       -.11435E-05    .14748E-04
  19  Prefactor     .10000E-03    4.0371       -.30055E-06** at limit **
  20  Prefactor     5.7008        20.663       -.86032E-05   -.20802E-04
  21  Prefactor     .10000E-03    21.549        .21012E-05** at limit **
  22  Prefactor     .10000E-03    7.8810       -.37440E-05** at limit **
  23  Prefactor     8.3650        14.690       -.24291E-05    .64597E-04
  24  Normalizat    .86426        .21177        .78238E-05    .61530E-04
  25  Prefactor     .96173        .11045        .17692E-05    .13067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.8496
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.0863
  Prefactor  = 0.0001
  Prefactor  = 0.544236
  Prefactor  = 15.5132
  norm       = 1.43291
  Prefactor  = 0.0001
  norm       = 1.88005
  Prefactor  = 0.0001
  Prefactor  = 13.6631
  Prefactor  = 0.0001
  Prefactor  = 0.36826
  Prefactor  = 7.34444
  Prefactor  = 10.8921
  Prefactor  = 0.0001
  Prefactor  = 5.70078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.36499
  Normalizat = 0.86426
  Prefactor  = 0.961729
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.485     FROM HESSE     STATUS=OK           425 CALLS     3353 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.850        63.675        .61218E-04   -1.4398    
   2  norm          .10000E-03    .96152        .12379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.1818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     69.086        84.178        .24138E-03   -1.4044    
   7  Prefactor     .10000E-03    11.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .54424        .21628        .24427E-04   -1.5560    
   9  Prefactor     15.513        12.008        .10169E-03   -1.4920    
  10  norm          1.4329        .93232        .67110E-04   -1.5469    
  11  Prefactor     .10000E-03    9.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8800        1.9075        .11249E-03   -1.5434    
  13  Prefactor     .10000E-03    12.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.663        16.315        .54177E-03   -1.4969    
  15  Prefactor     .10000E-03    30.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36826        .13771        .19047E-04   -1.5587    
  17  Prefactor     7.3444        14.578        .14790E-03   -1.5166    
  18  Prefactor     10.892        8.3013        .12138E-03   -1.5048    
  19  Prefactor     .10000E-03    4.0502        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7008        20.657        .16817E-03   -1.5230    
  21  Prefactor     .10000E-03    21.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.0747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.3650        14.683        .13858E-03   -1.5129    
  24  Normalizat    .86426        .24650        .35605E-03   -.97728    
  25  Prefactor     .96173        .13010        .18394E-03   -.94016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37785e-09
Minuit parameter uncertainties:
  1  63.7768
  2  1.73323e-06
  3  4.82725e-05
  4  8.01425e-05
  5  0.000140391
  6  84.3232
  7  1.48996e-05
  8  0.216284
  9  12.0096
  10  0.932329
  11  2.38208e-05
  12  1.90752
  13  1.90974e-05
  14  16.3199
  15  0.000183836
  16  0.13771
  17  14.5847
  18  8.30214
  19  1.17715e-05
  20  20.6833
  21  8.87369e-05
  22  7.44554e-05
  23  14.6895
  24  0.246816
  25  0.130143
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.366e+01  1.632e+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.617e-01  1.301e-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:  8.643e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 5.70e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 2.17e-05

TS (Fixed Index): 1.02
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484869/likelihoodResults_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.txt

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) = 7823.27544182
delta logL = 1.20998567867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7823.21678143
delta logL = 1.26864607173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1460       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5065       1.0000          .0000       10.000    
     3 'Normalizat'    .75085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99910       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.

 FCN=   7823.217     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      306 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1495        26.758        .57135E-02    .58846E-03
   2  Index         3.5063        2.0945        .10338        .21479E-03
   3  Normalizat    .75119        .66881E-01    .85639E-01    .33651E-04
   4  Prefactor     .99893        .34750E-01    .46256E-01   -.16633E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14955
  Index      = 3.50626
  Normalizat = 0.751188
  Prefactor  = 0.998933
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.217     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      337 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1495        47.702        .85970E-04   -1.5353    
   2  Index         3.5063        3.2485        .37659E-02   -.30338    
   3  Normalizat    .75119        .26392        .37928E-03   -1.0191    
   4  Prefactor     .99893        .14090        .18071E-03   -.92765    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.25921e-07
Minuit parameter uncertainties:
  1  24.5376
  2  3.57326
  3  0.264369
  4  0.140948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484869': 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): 102
logL (Free Index) = 7823.21677942
delta logL = 1.26864808515

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.150e+00  2.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.506e+00  3.573e+00  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.989e-01  1.409e-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:  7.512e-01  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 342.246 21.116
Photon Index (Free Index): 3.51 +/- 3.57
Photon Flux (Free Index): 1.42e-07 +/- 9.69e-08
Energy Flux (Free Index): 2.37e-05 +/- 2.06e-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/484869/cmap_HighResolution_625017601_625276801_4FGL_J2248.9+2106_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='2.37e-05', photon_flux_error='5.70e-08', dlogl='1.27e+00', energy_flux='1.81e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-28 21:31:04.851033', photon_index_error2='3.57', photon_index2='3.51', ts='1.02', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='2.06e-05', EG='0.86', time_epoch_completed='1632889864.85', return_code='0', job_id='484869', GAL2='1.00', EG2='0.75', return_code2='102', energy_flux_error='2.17e-05', photon_flux_error2='9.69e-08', ts2='3.88', photon_index='2.30' WHERE bin_id='1488' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 484869: <4FGL_J2248.9+2106_daily_bin1488> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1488 342.246 21.1159 625017601 625276801 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 :                                   768.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

