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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1267
RA = 342.246, Dec = 21.1159
tmin = 567734401, tmax = 567993601
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='483435', job_status='RUN', time_executed='2021-09-28 21:10:39.486674', time_epoch_executed='1632888639.49' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483435/ft1_4FGL_J2248.9+2106_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483435/ft2_4FGL_J2248.9+2106_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483435/ft1_4FGL_J2248.9+2106_daily_bin1267.fits outfile=/scratch/kocevski/483435/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1267.fits ra=342.246 dec=21.1159 rad=12.0 tmin=567734401.0 tmax=567993601.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.29
user 2.10
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483435/ft1_filtered_4FGL_J2248.9+2106_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/483435/ft2_4FGL_J2248.9+2106_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/483435/ltcube_567734401_567993601_4FGL_J2248.9+2106_daily_bin1267.fits outfile=/scratch/kocevski/483435/expmap_567734401_567993601_4FGL_J2248.9+2106_daily_bin1267.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/483435/ltcube_567734401_567993601_4FGL_J2248.9+2106_daily_bin1267.fits
.....................!
real 190.65
user 185.97
sys 4.36

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/483435/ft1_filtered_4FGL_J2248.9+2106_daily_bin1267.fits scfile=/scratch/kocevski/483435/ft2_4FGL_J2248.9+2106_daily_bin1267.fits outfile=/scratch/kocevski/483435/cmap_567734401_567993601_4FGL_J2248.9+2106_daily_bin1267.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483435/ft1_filtered_4FGL_J2248.9+2106_daily_bin1267.fits scfile=/scratch/kocevski/483435/ft2_4FGL_J2248.9+2106_daily_bin1267.fits outfile=/scratch/kocevski/483435/cmap_HighResolution_567734401_567993601_4FGL_J2248.9+2106_daily_bin1267.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/483435/ft1_filtered_4FGL_J2248.9+2106_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/483435/ft2_4FGL_J2248.9+2106_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483435/Model_4FGL_J2248.9+2106_daily_bin1267.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/483435/ft1_filtered_4FGL_J2248.9+2106_daily_bin1267.fits.....................!
real 136.10
user 134.67
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .33405E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56664E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.066       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8117       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45548       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8898       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9039       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67475       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8752       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2339       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83652       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=   13798.76     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2514 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9.8615        .90712E-02** at limit **
   2  norm          .10000E-03    .21045        .28042E-01** at limit **
   3  Prefactor     .10000E-03    5.8547        .90712E-02** at limit **
   4  norm          .10002E-03    1.2887        .72889E-01** at limit **
   5  Prefactor     5.0115        9.8001        .44906E-02    .17058E-03
   6  Prefactor     .10001E-03    12.391        .90712E-02** at limit **
   7  Prefactor     .10000E-03    2.7720        .10547    ** at limit **
   8  Prefactor     1.6121        .22865        .44482E-02    .16701E-03
   9  Prefactor     14.065        9.2670        .26700E-02    .82234E-04
  10  norm          1.4055        .66238        .91432E-02    .17902E-03
  11  Prefactor     .10000E-03    3.4333        .90712E-02** at limit **
  12  norm          1.8118        1.2273        .77596E-02    .52114E-03
  13  Prefactor     .10000E-03    20.751        .90712E-02** at limit **
  14  Prefactor     24.707        8.8183        .20147E-02    .56405E-04
  15  Prefactor     .10000E-03    13.195        .90712E-02** at limit **
  16  Prefactor     .45544        .11247        .41933E-02    .39467E-03
  17  Prefactor     3.8898        6.9664        .51146E-02    .33547E-03
  18  Prefactor     1.8546        2.3991        .76521E-02    .25196E-03
  19  Prefactor     6.9034        8.8234        .38173E-02    .11689E-03
  20  Prefactor     .10001E-03    14.897        .90712E-02** at limit **
  21  Prefactor     .10000E-03    7.4366        .90712E-02** at limit **
  22  Prefactor     .69398        2.3630        .81556E-01    .10044E-02
  23  Prefactor     1.8706        29.211        .76021E-02    .79149E-03
  24  Normalizat    1.2339        .16356        .69642E-01   -.13200E-04
  25  Prefactor     .83650        .84853E-01    .44191E-01   -.29207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100025
  Prefactor  = 5.01153
  Prefactor  = 0.000100014
  Prefactor  = 0.000100003
  Prefactor  = 1.61205
  Prefactor  = 14.0649
  norm       = 1.4055
  Prefactor  = 0.0001
  norm       = 1.81181
  Prefactor  = 0.000100002
  Prefactor  = 24.707
  Prefactor  = 0.000100005
  Prefactor  = 0.45544
  Prefactor  = 3.88981
  Prefactor  = 1.85459
  Prefactor  = 6.90337
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.693976
  Prefactor  = 1.87061
  Normalizat = 1.23394
  Prefactor  = 0.836498
 **********
 **   18 **HESSE 
 **********

 FCN=   13798.76     FROM HESSE     STATUS=OK           439 CALLS     2953 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.8903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .31124        .10451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    19.840        .25620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0115        9.8027        .17962E-03   -1.5260    
   6  Prefactor     .10001E-03    12.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.323        .37148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6121        .22966        .19676E-04   -1.5454    
   9  Prefactor     14.065        9.2839        .53399E-03   -1.4958    
  10  norm          1.4055        .65579        .63313E-04   -1.5471    
  11  Prefactor     .10000E-03    3.4375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8118        1.2194        .10269E-03   -1.5439    
  13  Prefactor     .10000E-03    20.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.707        8.8112        .80589E-04   -1.4713    
  15  Prefactor     .10000E-03    13.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45544        .11187        .18629E-04   -1.5573    
  17  Prefactor     3.8898        6.9509        .20458E-03   -1.5313    
  18  Prefactor     1.8546        2.3848        .20109E-03   -1.5436    
  19  Prefactor     6.9034        8.8144        .15269E-03   -1.5182    
  20  Prefactor     .10001E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.4795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .69398        6.3183        .29092E-02   -1.5541    
  23  Prefactor     1.8706        27.766        .30408E-03   -1.5434    
  24  Normalizat    1.2339        .19228        .30814E-03   -.85560    
  25  Prefactor     .83650        .10178        .20054E-03   -.98397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36824e-08
Minuit parameter uncertainties:
  1  0.000560492
  2  5.61595e-07
  3  2.62585e-05
  4  0.00139525
  5  9.80583
  6  0.000840988
  7  0.000514356
  8  0.229664
  9  9.28489
  10  0.655791
  11  7.1608e-06
  12  1.21945
  13  0.000455129
  14  8.81168
  15  0.000498109
  16  0.111866
  17  6.95238
  18  2.38492
  19  8.81606
  20  0.000777054
  21  0.00011501
  22  4.18825
  23  14.4213
  24  0.192387
  25  0.101803
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.471e+01  8.812e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.365e-01  1.018e-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.234e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.89
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.63e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.17e-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) = 13795.6530171
delta logL = 3.10275579964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13795.5322854
delta logL = 3.22348754073

Fit tolerance = 1e-08

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

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

 FCN=   13795.53     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      247 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.680        14.380        .67094E-04   -.94550E-04
   2  Index         1.6218        .26536        .68706E-02   -.47658E-04
   3  Normalizat    1.2825        .18429        .30329E-03   -.52898E-03
   4  Prefactor     .82331        .10114        .20205E-03   -.67435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6796
  Index      = 1.62183
  Normalizat = 1.28254
  Prefactor  = 0.823307
 **********
 **   18 **HESSE 
 **********

 FCN=   13795.53     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.680        14.470        .13419E-04   -1.4513    
   2  Index         1.6218        .26700        .27482E-03   -.74182    
   3  Normalizat    1.2825        .18444        .60658E-04   -.84089    
   4  Prefactor     .82331        .10122        .40409E-04   -.98875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01127e-10
Minuit parameter uncertainties:
  1  14.4713
  2  0.267231
  3  0.18453
  4  0.101247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483435': 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) = 13795.5322837
delta logL = 3.22348920292

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.568e+01  1.447e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.622e+00  2.672e-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.233e-01  1.012e-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.283e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.31
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.62 +/- 0.27
Photon Flux (Free Index): 4.24e-08 +/- 2.41e-08
Energy Flux (Free Index): 8.93e-05 +/- 5.46e-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/483435/cmap_HighResolution_567734401_567993601_4FGL_J2248.9+2106_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.63e-08', energy_flux2='8.93e-05', photon_flux_error='3.08e-08', dlogl='3.22e+00', energy_flux='3.28e-05', photon_flux2='4.24e-08', job_status='DONE', time_completed='2021-09-28 21:26:31.175818', photon_index_error2='0.27', photon_index2='1.62', ts='31.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='5.46e-05', EG='1.23', time_epoch_completed='1632889591.18', return_code='0', job_id='483435', GAL2='0.82', EG2='1.28', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.41e-08', ts2='38.31', photon_index='2.30' WHERE bin_id='1267' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:26:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 483435: <4FGL_J2248.9+2106_daily_bin1267> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1267 342.246 21.1159 567734401 567993601 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 :                                   945.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

