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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1408
RA = 342.246, Dec = 21.1159
tmin = 604281601, tmax = 604540801
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='483668', job_status='RUN', time_executed='2021-09-28 21:13:05.538679', time_epoch_executed='1632888785.54' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483668

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483668/ft1_4FGL_J2248.9+2106_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483668/ft2_4FGL_J2248.9+2106_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483668/ft1_4FGL_J2248.9+2106_daily_bin1408.fits outfile=/scratch/kocevski/483668/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1408.fits ra=342.246 dec=21.1159 rad=12.0 tmin=604281601.0 tmax=604540801.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.62
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483668/ft1_filtered_4FGL_J2248.9+2106_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/483668/ft2_4FGL_J2248.9+2106_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/483668/ltcube_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.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/483668/ft2_4FGL_J2248.9+2106_daily_bin1408.fits
.....................!
real 11.67
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483668/ft1_filtered_4FGL_J2248.9+2106_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/483668/ft2_4FGL_J2248.9+2106_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/483668/ltcube_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.fits outfile=/scratch/kocevski/483668/expmap_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.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/483668/ltcube_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.fits
.....................!
real 190.94
user 185.22
sys 5.35

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/483668/ft1_filtered_4FGL_J2248.9+2106_daily_bin1408.fits scfile=/scratch/kocevski/483668/ft2_4FGL_J2248.9+2106_daily_bin1408.fits outfile=/scratch/kocevski/483668/cmap_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483668/ft1_filtered_4FGL_J2248.9+2106_daily_bin1408.fits scfile=/scratch/kocevski/483668/ft2_4FGL_J2248.9+2106_daily_bin1408.fits outfile=/scratch/kocevski/483668/cmap_HighResolution_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.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/483668/ft1_filtered_4FGL_J2248.9+2106_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/483668/ft2_4FGL_J2248.9+2106_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483668/Model_4FGL_J2248.9+2106_daily_bin1408.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/483668/ft1_filtered_4FGL_J2248.9+2106_daily_bin1408.fits.....................!
real 86.77
user 85.37
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5321       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.446       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4738       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53628       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9819       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.659       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2982       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.136       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4723       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81056       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=   7915.014     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2895 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.834       -.26401E-05** at limit **
   2  norm          .10000E-03    .34724        .65689E-08** at limit **
   3  Prefactor     .10000E-03    4.0937       -.21987E-07** at limit **
   4  norm          .10000E-03    2.0511       -.13774E-06** at limit **
   5  Prefactor     2.5321        6.5145       -.63851E-08   -.21220E-03
   6  Prefactor     55.442        58.361       -.42455E-05   -.28842E-06
   7  Prefactor     5.4726        11.952        .12833E-06   -.91141E-04
   8  Prefactor     .53627        .20853        .20112E-07    .60890E-04
   9  Prefactor     2.9822        6.6982        .32824E-08   -.21221E-03
  10  norm          1.1190        .77475       -.62977E-08    .58493E-05
  11  Prefactor     11.659        13.434        .16403E-07    .20801E-06
  12  norm          1.1851        1.1363        .15861E-06   -.21337E-04
  13  Prefactor     .10000E-03    43.287       -.41350E-07** at limit **
  14  Prefactor     .10000E-03    22.785        .66123E-06** at limit **
  15  Prefactor     9.2982        9.4257       -.93219E-08    .28458E-05
  16  Prefactor     .55785        .16099        .39009E-07    .23669E-04
  17  Prefactor     .10000E-03    4.8290        .77358E-07** at limit **
  18  Prefactor     8.2175        7.3263       -.55393E-08   -.21221E-05
  19  Prefactor     32.135        16.809       -.17336E-06    .57257E-06
  20  Prefactor     .10000E-03    11.617        .27991E-05** at limit **
  21  Prefactor     .10000E-03    8.0727        .56885E-06** at limit **
  22  Prefactor     .10000E-03    4.8244       -.77290E-07** at limit **
  23  Prefactor     .10000E-03    8.8875       -.11920E-05** at limit **
  24  Normalizat    1.4724        .21524        .64610E-06   -.14900E-04
  25  Prefactor     .81051        .11340        .29806E-07    .27461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.53211
  Prefactor  = 55.4418
  Prefactor  = 5.47265
  Prefactor  = 0.536266
  Prefactor  = 2.98216
  norm       = 1.11901
  Prefactor  = 11.6586
  norm       = 1.18507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.29821
  Prefactor  = 0.557852
  Prefactor  = 0.0001
  Prefactor  = 8.21746
  Prefactor  = 32.1353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.47244
  Prefactor  = 0.810509
 **********
 **   18 **HESSE 
 **********

 FCN=   7915.014     FROM HESSE     STATUS=OK           429 CALLS     3324 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .55750        .10203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0963        .17579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0821        .12444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5321        9.5300        .12834E-02   -1.5390    
   6  Prefactor     55.442        58.395        .53871E-04   -1.4217    
   7  Prefactor     5.4726        12.576        .85870E-03   -1.5240    
   8  Prefactor     .53627        .20988        .24356E-04   -1.5562    
   9  Prefactor     2.9822        8.2957        .11755E-02   -1.5363    
  10  norm          1.1190        .77629        .62566E-04   -1.5496    
  11  Prefactor     11.659        13.424        .11732E-03   -1.5025    
  12  norm          1.1851        1.1354        .41933E-04   -1.5490    
  13  Prefactor     .10000E-03    43.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2982        9.4292        .13143E-03   -1.5098    
  16  Prefactor     .55785        .16075        .18290E-04   -1.5559    
  17  Prefactor     .10000E-03    4.8419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2175        7.3238        .13986E-03   -1.5135    
  19  Prefactor     32.135        16.818        .70683E-04   -1.4574    
  20  Prefactor     .10000E-03    11.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.9209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4724        .25599        .29822E-03   -.78556    
  25  Prefactor     .81051        .13535        .20935E-03   -.99342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87715e-10
Minuit parameter uncertainties:
  1  2.30686e-06
  2  2.47862e-06
  3  2.00891e-07
  4  1.4013e-06
  5  9.53568
  6  58.4559
  7  12.582
  8  0.209879
  9  8.29893
  10  0.776294
  11  13.4272
  12  1.13542
  13  6.18024e-05
  14  8.55189e-05
  15  9.43074
  16  0.160746
  17  3.51657e-06
  18  7.32463
  19  16.82
  20  8.88843e-06
  21  2.73973e-06
  22  7.52169e-06
  23  4.67446e-06
  24  0.25621
  25  0.135406
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  8.552e-05  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:  8.105e-01  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:  1.472e+00  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 9.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483668/likelihoodResults_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.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): 102
logL (Free Index) = 7915.01427653
delta logL = -0.000204522369131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7915.01407216
delta logL = -1.59540832101e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12592E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3856       1.0000          .0000       10.000    
     3 'Normalizat'    1.4727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81039       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7914.438     FROM MIGRAD    STATUS=FAILED       260 CALLS      424 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21036E-01    .19450E-03** at limit **
   2  Index         7.4145        7.7839        .63321E-02    .81608E-03
   3  Normalizat    1.3914        .10791        .30524E-03   -.19293E-03
   4  Prefactor     .83976        .57918E-01    .20607E-03   -.34801E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7914.438     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      589 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21036E-01    .66924E-05** at limit **
   2  Index         7.4145        7.7839        .34003E-03    .81608E-03
   3  Normalizat    1.3914        .10791        .12569E-04   -.19293E-03
   4  Prefactor     .83976        .57918E-01    .82464E-05   -.34801E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7914.438     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      629 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14033E-01    .24116E-03** at limit **
   2  Index         7.4145        7.7094        .12664E-02   -.80614E-05
   3  Normalizat    1.3914        .97814E-01    .12210E-04   -.19312E-03
   4  Prefactor     .83976        .52742E-01    .41215E-04   -.34850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.41447
  Normalizat = 1.39136
  Prefactor  = 0.839759
 **********
 **   18 **HESSE 
 **********

 FCN=   7914.438     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      662 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .16613E-01    .22266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.4145        7.7609        .50657E-04    .50396    
   3  Normalizat    1.3914        .10396        .24419E-05   -.80879    
   4  Prefactor     .83976        .56051E-01    .82429E-05   -.98279    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.13796e-10
Minuit parameter uncertainties:
  1  1.59249e-07
  2  5.14272
  3  0.103973
  4  0.0560548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483668': 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) = 7914.43806577
delta logL = 0.576006230664

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  1.592e-07  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  7.414e+00  5.143e+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:  8.398e-01  5.605e-02  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.391e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 342.246 21.116
Photon Index (Free Index): 7.41 +/- 5.14
Photon Flux (Free Index): 5.90e-08 +/- 7.48e-07
Energy Flux (Free Index): 6.96e-06 +/- 8.76e-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/483668/cmap_HighResolution_604281601_604540801_4FGL_J2248.9+2106_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', energy_flux2='6.96e-06', dlogl='5.76e-01', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-28 21:26:55.179734', photon_index_error2='5.14', photon_index2='7.41', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='9.70e-08', energy_flux_error2='8.76e-05', EG='1.47', time_epoch_completed='1632889615.18', return_code='0', job_id='483668', GAL2='0.84', EG2='1.39', return_code2='102', photon_flux_error2='7.48e-07', ts2='1.24', photon_index='2.30' WHERE bin_id='1408' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:26:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 483668: <4FGL_J2248.9+2106_daily_bin1408> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1408 342.246 21.1159 604281601 604540801 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 :                                   821.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.06 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.

