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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1485
RA = 342.246, Dec = 21.1159
tmin = 624240001, tmax = 624499201
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='484865', job_status='RUN', time_executed='2021-09-28 21:17:32.508203', time_epoch_executed='1632889052.51' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484865/ft1_4FGL_J2248.9+2106_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484865/ft2_4FGL_J2248.9+2106_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484865/ft1_4FGL_J2248.9+2106_daily_bin1485.fits outfile=/scratch/kocevski/484865/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1485.fits ra=342.246 dec=21.1159 rad=12.0 tmin=624240001.0 tmax=624499201.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.49
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484865/ft1_filtered_4FGL_J2248.9+2106_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/484865/ft2_4FGL_J2248.9+2106_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/484865/ltcube_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.fits outfile=/scratch/kocevski/484865/expmap_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.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/484865/ltcube_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.fits
.....................!
real 191.06
user 185.35
sys 5.24

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/484865/ft1_filtered_4FGL_J2248.9+2106_daily_bin1485.fits scfile=/scratch/kocevski/484865/ft2_4FGL_J2248.9+2106_daily_bin1485.fits outfile=/scratch/kocevski/484865/cmap_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484865/ft1_filtered_4FGL_J2248.9+2106_daily_bin1485.fits scfile=/scratch/kocevski/484865/ft2_4FGL_J2248.9+2106_daily_bin1485.fits outfile=/scratch/kocevski/484865/cmap_HighResolution_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.246 yref=21.1159 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484865/ft1_filtered_4FGL_J2248.9+2106_daily_bin1485.fits', '/scratch/kocevski/484865/ft2_4FGL_J2248.9+2106_daily_bin1485.fits', expMap='/scratch/kocevski/484865/expmap_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.fits', expCube='/scratch/kocevski/484865/ltcube_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484865/Model_4FGL_J2248.9+2106_daily_bin1485.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/484865/ft1_filtered_4FGL_J2248.9+2106_daily_bin1485.fits
Spacecraft file(s): /scratch/kocevski/484865/ft2_4FGL_J2248.9+2106_daily_bin1485.fits
Exposure map: /scratch/kocevski/484865/expmap_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.fits
Exposure cube: /scratch/kocevski/484865/ltcube_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484865/Model_4FGL_J2248.9+2106_daily_bin1485.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7447.82761998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20509E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.013       1.0000         .10000E-03   10000.    
    10 'norm      '    .10997E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.187       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.697       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39496       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9189       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6410       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7074       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7021       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91236       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96106       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=   7447.748     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2951 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.069       -.21372E-05** at limit **
   2  norm          .10000E-03    .51662        .41120E-07** at limit **
   3  Prefactor     .10000E-03    6.1162        .42136E-06** at limit **
   4  norm          .10000E-03    3.1379       -.94998E-06** at limit **
   5  Prefactor     .10000E-03    3.4366        .74351E-08** at limit **
   6  Prefactor     .10000E-03    38.942        .68762E-06** at limit **
   7  Prefactor     3.1293        9.5236        .21882E-07   -.27708E-04
   8  Prefactor     .24852        .16681        .14633E-07   -.12762E-03
   9  Prefactor     12.013        8.8381        .95732E-08    .13622E-04
  10  norm          .10000E-03    .34970       -.66975E-07** at limit **
  11  Prefactor     20.200        18.030        .34964E-05    .35054E-03
  12  norm          3.6747        1.8304       -.74208E-09    .46664E-04
  13  Prefactor     .10000E-03    13.410        .14199E-05** at limit **
  14  Prefactor     23.696        13.684        .86015E-07    .22881E-04
  15  Prefactor     .10000E-03    7.2363        .15698E-05** at limit **
  16  Prefactor     .39491        .14565        .62815E-09   -.34891E-03
  17  Prefactor     28.957        14.736       -.41276E-07   -.78777E-07
  18  Prefactor     .10000E-03    2.1705       -.17609E-07** at limit **
  19  Prefactor     9.9172        12.020        .21871E-06    .32619E-05
  20  Prefactor     .10000E-03    10.510        .61672E-06** at limit **
  21  Prefactor     6.6311        20.583       -.72747E-05   -.17109E-03
  22  Prefactor     4.7055        5.6221        .12031E-05   -.22554E-02
  23  Prefactor     3.7021        16.824        .10974E-05   -.56117E-03
  24  Normalizat    .91235        .20959       -.27522E-06    .11191E-03
  25  Prefactor     .96114        .11344       -.14156E-06    .21818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12925
  Prefactor  = 0.248519
  Prefactor  = 12.0132
  norm       = 0.0001
  Prefactor  = 20.1997
  norm       = 3.67473
  Prefactor  = 0.0001
  Prefactor  = 23.6959
  Prefactor  = 0.0001
  Prefactor  = 0.394914
  Prefactor  = 28.9566
  Prefactor  = 0.0001
  Prefactor  = 9.91723
  Prefactor  = 0.0001
  Prefactor  = 6.63113
  Prefactor  = 4.70553
  Prefactor  = 3.70209
  Normalizat = 0.912347
  Prefactor  = 0.961138
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.748     FROM HESSE     STATUS=OK           433 CALLS     3384 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4762        .12046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.8063        .29022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4395        .15624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1293        9.5368        .22927E-03   -1.5354    
   8  Prefactor     .24852        .16248        .27696E-03   -1.5608    
   9  Prefactor     12.013        8.8441        .11558E-03   -1.5015    
  10  norm          .10000E-03    .49116        .98594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.200        18.131        .89146E-04   -1.4809    
  12  norm          3.6747        1.8305        .78981E-04   -1.5325    
  13  Prefactor     .10000E-03    13.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.696        13.678        .82285E-04   -1.4734    
  15  Prefactor     .10000E-03    7.2572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39491        .14481        .19045E-04   -1.5582    
  17  Prefactor     28.957        14.743        .74451E-04   -1.4631    
  18  Prefactor     .10000E-03    2.1776        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9172        12.016        .12723E-03   -1.5078    
  20  Prefactor     .10000E-03    10.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6311        21.020        .15572E-03   -1.5193    
  22  Prefactor     4.7055        7.0432        .92734E-03   -1.5274    
  23  Prefactor     3.7021        17.556        .10495E-02   -1.5323    
  24  Normalizat    .91235        .25100        .33494E-03   -.96028    
  25  Prefactor     .96114        .13529        .18251E-03   -.94036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12878e-09
Minuit parameter uncertainties:
  1  0.000104498
  2  1.11346e-06
  3  1.38875e-05
  4  0.000318937
  5  1.61365e-07
  6  4.99411e-05
  7  9.54146
  8  0.162484
  9  8.84506
  10  1.84546e-05
  11  18.1359
  12  1.83057
  13  7.15443e-05
  14  13.6794
  15  5.84429e-05
  16  0.144808
  17  14.7453
  18  8.60961e-07
  19  12.0185
  20  4.85174e-05
  21  21.0431
  22  7.04448
  23  16.1312
  24  0.251321
  25  0.13534
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.370e+01  1.368e+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.611e-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:  9.123e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.12
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.28e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 1.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) = 7447.6468586
delta logL = 0.101189938585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7447.64638309
delta logL = 0.101665445752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.954       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1115       1.0000          .0000       10.000    
     3 'Normalizat'    .92627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95617       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=   7447.646     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      272 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.944        334.87        .18614E-02    .79722E-04
   2  Index         2.1111        2.9489        .15757        .10682E-03
   3  Normalizat    .92631        .11363        .75186E-01    .14135E-03
   4  Prefactor     .95620        .46479E-01    .45717E-01    .18820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9443
  Index      = 2.11113
  Normalizat = 0.926315
  Prefactor  = 0.956204
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.646     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.944        19.647        .74456E-04   -1.4631    
   2  Index         2.1111        .41311        .55348E-02   -.61600    
   3  Normalizat    .92631        .24169        .33273E-03   -.95542    
   4  Prefactor     .95620        .13472        .18293E-03   -.94204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32425e-11
Minuit parameter uncertainties:
  1  19.6516
  2  0.413822
  3  0.241974
  4  0.134769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484865': 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) = 7447.64638185
delta logL = 0.101666693172

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.894e+01  1.965e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.111e+00  4.138e-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:  9.562e-01  1.348e-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:  9.263e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.11 +/- 0.41
Photon Flux (Free Index): 7.18e-08 +/- 4.85e-08
Energy Flux (Free Index): 3.85e-05 +/- 2.96e-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/484865/cmap_HighResolution_624240001_624499201_4FGL_J2248.9+2106_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.28e-08', energy_flux2='3.85e-05', photon_flux_error='4.78e-08', dlogl='1.02e-01', energy_flux='3.14e-05', photon_flux2='7.18e-08', job_status='DONE', time_completed='2021-09-28 21:29:08.206524', photon_index_error2='0.41', photon_index2='2.11', ts='5.12', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='0.91', time_epoch_completed='1632889748.21', return_code='0', job_id='484865', GAL2='0.96', EG2='0.93', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='4.85e-08', ts2='5.36', photon_index='2.30' WHERE bin_id='1485' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:29:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 484865: <4FGL_J2248.9+2106_daily_bin1485> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1485> 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) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:15:16 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:16 2021
Terminated at Tue Sep 28 21:29:08 2021
Results reported at Tue Sep 28 21:29:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1485 342.246 21.1159 624240001 624499201 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 :                                   685.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

