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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1305
RA = 342.246, Dec = 21.1159
tmin = 577584001, tmax = 577843201
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='483499', job_status='RUN', time_executed='2021-09-28 21:14:15.772711', time_epoch_executed='1632888855.77' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483499/ft1_4FGL_J2248.9+2106_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483499/ft2_4FGL_J2248.9+2106_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483499/ft1_4FGL_J2248.9+2106_daily_bin1305.fits outfile=/scratch/kocevski/483499/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1305.fits ra=342.246 dec=21.1159 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.81
user 2.62
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483499/ft1_filtered_4FGL_J2248.9+2106_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/483499/ft2_4FGL_J2248.9+2106_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/483499/ltcube_577584001_577843201_4FGL_J2248.9+2106_daily_bin1305.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/483499/ft2_4FGL_J2248.9+2106_daily_bin1305.fits
.....................!
real 12.22
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483499/ft1_filtered_4FGL_J2248.9+2106_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/483499/ft2_4FGL_J2248.9+2106_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/483499/ltcube_577584001_577843201_4FGL_J2248.9+2106_daily_bin1305.fits outfile=/scratch/kocevski/483499/expmap_577584001_577843201_4FGL_J2248.9+2106_daily_bin1305.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/483499/ltcube_577584001_577843201_4FGL_J2248.9+2106_daily_bin1305.fits
.....................!
real 191.45
user 185.90
sys 5.23

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/483499/ft1_filtered_4FGL_J2248.9+2106_daily_bin1305.fits scfile=/scratch/kocevski/483499/ft2_4FGL_J2248.9+2106_daily_bin1305.fits outfile=/scratch/kocevski/483499/cmap_577584001_577843201_4FGL_J2248.9+2106_daily_bin1305.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483499/ft1_filtered_4FGL_J2248.9+2106_daily_bin1305.fits scfile=/scratch/kocevski/483499/ft2_4FGL_J2248.9+2106_daily_bin1305.fits outfile=/scratch/kocevski/483499/cmap_HighResolution_577584001_577843201_4FGL_J2248.9+2106_daily_bin1305.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.423       1.0000         .10000E-03   10000.    
     2 'norm      '    .67557       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9250       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.2091       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1488       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    182.10       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1073       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9839       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 '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0686       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89951       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=   6892.506     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2862 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.429        42.171        .59254E-05   -.66460E-05
   2  norm          .67558        .55669        .22784E-07    .27858E-03
   3  Prefactor     .10000E-03    23.553        .10621E-04** at limit **
   4  norm          1.9247        4.1695       -.32159E-05   -.76532E-03
   5  Prefactor     .10000E-03    11.299       -.50477E-05** at limit **
   6  Prefactor     .10000E-03    49.088       -.46101E-05** at limit **
   7  Prefactor     .10000E-03    3.8879        .13718E-06** at limit **
   8  Prefactor     .80906        .26020        .10225E-07    .59387E-03
   9  Prefactor     .10000E-03    3.2161        .36871E-07** at limit **
  10  norm          7.2091        2.0686       -.39050E-06   -.36834E-03
  11  Prefactor     4.1582        49.801        .19638E-04   -.24326E-04
  12  norm          .10000E-03    .56628        .15717E-07** at limit **
  13  Prefactor     .10000E-03    19.068       -.64073E-05** at limit **
  14  Prefactor     182.10        28.780       -.78647E-06    .67456E-05
  15  Prefactor     .10000E-03    17.333       -.45063E-05** at limit **
  16  Prefactor     2.1073        .31998        .16826E-07    .17976E-02
  17  Prefactor     18.974        14.436        .14418E-06   -.16954E-04
  18  Prefactor     .10000E-03    17.728       -.57189E-05** at limit **
  19  Prefactor     5.9777        16.164       -.29690E-06   -.15098E-04
  20  Prefactor     .10000E-03    22.078        .18330E-05** at limit **
  21  Prefactor     .10000E-03    13.576        .92466E-05** at limit **
  22  Prefactor     .10000E-03    7.6440        .29004E-06** at limit **
  23  Prefactor     .10000E-03    11.863        .19685E-05** at limit **
  24  Normalizat    1.0686        .28356        .10696E-06   -.31940E-04
  25  Prefactor     .89948        .14313       -.29715E-06   -.12927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4292
  norm       = 0.675578
  Prefactor  = 0.0001
  norm       = 1.92473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.809059
  Prefactor  = 0.0001
  norm       = 7.20907
  Prefactor  = 4.15815
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 182.101
  Prefactor  = 0.0001
  Prefactor  = 2.10726
  Prefactor  = 18.9739
  Prefactor  = 0.0001
  Prefactor  = 5.97769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06864
  Prefactor  = 0.899478
 **********
 **   18 **HESSE 
 **********

 FCN=   6892.506     FROM HESSE     STATUS=OK           421 CALLS     3283 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.429        42.113        .58226E-04   -1.4329    
   2  norm          .67558        .58909        .54697E-03   -1.5544    
   3  Prefactor     .10000E-03    23.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9247        4.2614        .24603E-03   -1.5430    
   5  Prefactor     .10000E-03    11.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8973        .15986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .80906        .25957        .22935E-04   -1.5528    
   9  Prefactor     .10000E-03    3.2164        .14541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.2091        2.0641        .57491E-04   -1.5171    
  11  Prefactor     4.1582        48.671        .19789E-03   -1.5300    
  12  norm          .10000E-03    .56718        .61003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     182.10        28.789        .29915E-04   -1.3001    
  15  Prefactor     .10000E-03    17.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1073        .32111        .17239E-04   -1.5418    
  17  Prefactor     18.974        14.435        .91954E-04   -1.4837    
  18  Prefactor     .10000E-03    17.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9777        16.156        .16415E-03   -1.5219    
  20  Prefactor     .10000E-03    22.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0686        .33230        .40162E-03   -.90765    
  25  Prefactor     .89948        .16839        .22664E-03   -.96159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95152e-10
Minuit parameter uncertainties:
  1  42.1393
  2  0.589097
  3  0.000126275
  4  4.26208
  5  2.00925e-05
  6  4.29656e-06
  7  4.4801e-06
  8  0.259573
  9  2.23379e-07
  10  2.06417
  11  28.4808
  12  8.83824e-07
  13  5.06593e-06
  14  28.7915
  15  6.10405e-06
  16  0.321113
  17  14.4376
  18  5.22587e-05
  19  16.1674
  20  3.93029e-07
  21  1.14284e-06
  22  4.47276e-06
  23  1.57987e-06
  24  0.332955
  25  0.168486
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.821e+02  2.879e+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:  8.995e-01  1.685e-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.069e+00  3.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 175.75
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.36e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 2.42e-04 +/- 3.82e-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) = 6885.34247797
delta logL = 7.16355088727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6885.3381096
delta logL = 7.16791925888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    301.05       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8086       1.0000          .0000       10.000    
     3 'Normalizat'    1.2227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84826       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=   6885.338     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     301.00        53.423       -.18239E-05    .58497E-04
   2  Index         1.8083        .11991       -.58902E-05    .47397E-04
   3  Normalizat    1.2229        .27344        .31449E-05    .12293E-03
   4  Prefactor     .84825        .14167       -.10818E-07    .27643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 301.002
  Index      = 1.80828
  Normalizat = 1.22285
  Prefactor  = 0.848245
 **********
 **   18 **HESSE 
 **********

 FCN=   6885.338     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     301.00        53.406        .11704E-03   -1.2220    
   2  Index         1.8083        .11993        .22495E-03   -.69234    
   3  Normalizat    1.2229        .32132        .38012E-03   -.85900    
   4  Prefactor     .84825        .16724        .23289E-03   -.97974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04242e-11
Minuit parameter uncertainties:
  1  53.4142
  2  0.119947
  3  0.321839
  4  0.167346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483499': 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) = 6885.33810279
delta logL = 7.167926071

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.010e+02  5.341e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.808e+00  1.199e-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:  8.482e-01  1.673e-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.223e+00  3.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 189.19
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.81 +/- 0.12
Photon Flux (Free Index): 4.57e-07 +/- 8.89e-08
Energy Flux (Free Index): 5.33e-04 +/- 1.61e-04

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/483499/cmap_HighResolution_577584001_577843201_4FGL_J2248.9+2106_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-07', energy_flux2='5.33e-04', photon_flux_error='1.01e-07', dlogl='7.17e+00', energy_flux='2.42e-04', photon_flux2='4.57e-07', job_status='DONE', time_completed='2021-09-28 21:25:15.393654', photon_index_error2='0.12', photon_index2='1.81', ts='175.75', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.61e-04', EG='1.07', time_epoch_completed='1632889515.39', return_code='0', job_id='483499', GAL2='0.85', EG2='1.22', return_code2='0', energy_flux_error='3.82e-05', photon_flux_error2='8.89e-08', ts2='189.19', photon_index='2.30' WHERE bin_id='1305' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:25:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 483499: <4FGL_J2248.9+2106_daily_bin1305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1305 342.246 21.1159 577584001 577843201 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 :                                   649.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

