/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 225 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 = 7682
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2248.9+2106_daily_bin85
RA = 342.246, Dec = 21.1159
tmin = 261360001, tmax = 261619201
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='477497', job_status='RUN', time_executed='2021-09-28 20:54:14.939469', time_epoch_executed='1632887654.94' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477497/ft1_4FGL_J2248.9+2106_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477497/ft2_4FGL_J2248.9+2106_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477497/ft1_4FGL_J2248.9+2106_daily_bin85.fits outfile=/scratch/kocevski/477497/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin85.fits ra=342.246 dec=21.1159 rad=12.0 tmin=261360001.0 tmax=261619201.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 1.48
user 1.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477497/ft2_4FGL_J2248.9+2106_daily_bin85.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/477497/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin85.fits evtable="EVENTS" outfile="/scratch/kocevski/477497/ft1_filtered_4FGL_J2248.9+2106_daily_bin85.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477497/ft1_filtered_4FGL_J2248.9+2106_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/477497/ft2_4FGL_J2248.9+2106_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/477497/ltcube_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.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/477497/ft2_4FGL_J2248.9+2106_daily_bin85.fits
.....................!
real 12.50
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477497/ft1_filtered_4FGL_J2248.9+2106_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/477497/ft2_4FGL_J2248.9+2106_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/477497/ltcube_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.fits outfile=/scratch/kocevski/477497/expmap_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.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/477497/ltcube_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.fits
.....................!
real 190.23
user 185.63
sys 4.29

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/477497/ft1_filtered_4FGL_J2248.9+2106_daily_bin85.fits scfile=/scratch/kocevski/477497/ft2_4FGL_J2248.9+2106_daily_bin85.fits outfile=/scratch/kocevski/477497/cmap_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477497/ft1_filtered_4FGL_J2248.9+2106_daily_bin85.fits scfile=/scratch/kocevski/477497/ft2_4FGL_J2248.9+2106_daily_bin85.fits outfile=/scratch/kocevski/477497/cmap_HighResolution_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.919       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4529       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9623       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3052       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14840E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6889       1.0000         .10000E-03   10000.    
    10 'norm      '    6.4363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1252       1.0000         .10000E-03   10000.    
    12 'norm      '    .40059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57138       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.915       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6120       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0425       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71819       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99969       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=   7213.798     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2890 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.924        48.802        .21591E-05   -.41480E-04
   2  norm          2.4530        1.1144        .93183E-08   -.10566E-03
   3  Prefactor     9.9496        13.713        .72602E-06   -.82070E-04
   4  norm          2.3058        3.6506       -.27697E-06   -.52238E-03
   5  Prefactor     .10000E-03    8.6003        .46357E-05** at limit **
   6  Prefactor     .10000E-03    243.98       -.26272E-05** at limit **
   7  Prefactor     .10000E-03    11.112        .14861E-05** at limit **
   8  Prefactor     .21755        .17953       -.14290E-07   -.25386E-02
   9  Prefactor     4.6891        6.2046       -.14861E-06   -.23454E-03
  10  norm          6.4350        1.6224        .11358E-07   -.14548E-04
  11  Prefactor     6.1254        11.367        .39872E-06   -.68199E-04
  12  norm          .40116        1.4320       -.12760E-05   -.18908E-02
  13  Prefactor     50.871        31.140       -.48304E-06    .43768E-04
  14  Prefactor     .10000E-03    11.145        .30514E-06** at limit **
  15  Prefactor     .10000E-03    12.386       -.10798E-05** at limit **
  16  Prefactor     .57140        .16630        .77092E-08    .10322E-03
  17  Prefactor     .10000E-03    7.6995       -.10692E-05** at limit **
  18  Prefactor     20.916        9.3769        .57453E-06   -.14573E-03
  19  Prefactor     .10000E-03    5.4979       -.13870E-07** at limit **
  20  Prefactor     9.6142        18.308       -.72949E-06   -.39732E-04
  21  Prefactor     4.0318        56.770        .10811E-04   -.81213E-04
  22  Prefactor     .10000E-03    2.1173        .18816E-07** at limit **
  23  Prefactor     .10000E-03    8.8324       -.39669E-05** at limit **
  24  Normalizat    .71827        .21254       -.74797E-06   -.18466E-04
  25  Prefactor     .99960        .11612       -.59474E-07    .21159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.9236
  norm       = 2.45305
  Prefactor  = 9.94961
  norm       = 2.30579
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.217554
  Prefactor  = 4.68911
  norm       = 6.43503
  Prefactor  = 6.12542
  norm       = 0.401163
  Prefactor  = 50.8708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.571399
  Prefactor  = 0.0001
  Prefactor  = 20.9158
  Prefactor  = 0.0001
  Prefactor  = 9.61419
  Prefactor  = 4.03181
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.718274
  Prefactor  = 0.999596
 **********
 **   18 **HESSE 
 **********

 FCN=   7213.798     FROM HESSE     STATUS=OK           429 CALLS     3319 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.924        48.605        .64248E-04   -1.4459    
   2  norm          2.4530        1.1120        .58530E-04   -1.5395    
   3  Prefactor     9.9496        13.666        .12695E-03   -1.5077    
   4  norm          2.3058        3.6616        .19897E-03   -1.5404    
   5  Prefactor     .10000E-03    8.2407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    244.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21755        .17233        .30898E-03   -1.5615    
   9  Prefactor     4.6891        6.2103        .92920E-03   -1.5275    
  10  norm          6.4350        1.6221        .51655E-04   -1.5201    
  11  Prefactor     6.1254        11.346        .16222E-03   -1.5213    
  12  norm          .40116        1.7538        .21332E-03   -1.5581    
  13  Prefactor     50.871        31.161        .56229E-04   -1.4280    
  14  Prefactor     .10000E-03    11.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .57140        .16604        .17391E-04   -1.5557    
  17  Prefactor     .10000E-03    7.7315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.916        9.3217        .87580E-04   -1.4793    
  19  Prefactor     .10000E-03    5.5116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.6142        18.310        .12926E-03   -1.5088    
  21  Prefactor     4.0318        52.682        .20055E-03   -1.5306    
  22  Prefactor     .10000E-03    2.1279        .12065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71827        .24314        .36937E-03   -1.0318    
  25  Prefactor     .99960        .13525        .17996E-03   -.92743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30535e-09
Minuit parameter uncertainties:
  1  48.6549
  2  1.11198
  3  13.6706
  4  3.66191
  5  0.000157965
  6  0.000506314
  7  6.08245e-05
  8  0.172329
  9  6.21117
  10  1.6221
  11  11.3501
  12  1.67746
  13  31.1707
  14  7.94414e-05
  15  4.58228e-05
  16  0.166044
  17  4.48008e-05
  18  9.32237
  19  1.04937e-06
  20  18.3209
  21  29.1793
  22  1.38899e-06
  23  0.000140612
  24  0.243508
  25  0.135298
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  7.944e-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:  9.996e-01  1.353e-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.183e-01  2.435e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477497/likelihoodResults_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.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) = 7213.79863222
delta logL = -0.000419744300416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7213.79821243
delta logL = 4.58076101495e-08

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 'Index     '    2.2807       1.0000          .0000       10.000    
     3 'Normalizat'    .71828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99959       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=   7213.798     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4398        .90712E-02** at limit **
   2  Index         2.2655        6.0805        .50000        .10243E-04
   3  Normalizat    .71827        .41288E-02    .83408E-01    .30912E-04
   4  Prefactor     .99960        .23533E-02    .46262E-01   -.29337E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26547
  Normalizat = 0.718275
  Prefactor  = 0.999596
 **********
 **   18 **HESSE 
 **********

 FCN=   7213.798     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2655        5.7734        .50000       -.57866    
   3  Normalizat    .71827        .11258E-01    .36937E-03   -1.0318    
   4  Prefactor     .99960        .64312E-02    .17996E-03   -.92743    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1471e-07
Minuit parameter uncertainties:
  1  2.74959e-05
  2  137.931
  3  0.0112578
  4  0.0064312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477497': 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) = 7213.79821238
delta logL = 8.88021531864e-08

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.750e-05  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.265e+00  1.379e+02  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.996e-01  6.431e-03  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.183e-01  1.126e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.246 21.116

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/477497/cmap_HighResolution_261360001_261619201_4FGL_J2248.9+2106_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-28 21:06:25.921078', job_id='477497', GAL2='1.00', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632888385.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='85' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:06:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 477497: <4FGL_J2248.9+2106_daily_bin85> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin85> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 20:50:21 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:50:22 2021
Terminated at Tue Sep 28 21:06:26 2021
Results reported at Tue Sep 28 21:06:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin85 342.246 21.1159 261360001 261619201 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

