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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1406
RA = 342.246, Dec = 21.1159
tmin = 603763201, tmax = 604022401
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='483665', job_status='RUN', time_executed='2021-09-28 21:10:54.394430', time_epoch_executed='1632888654.39' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483665/ft1_4FGL_J2248.9+2106_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483665/ft2_4FGL_J2248.9+2106_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483665/ft1_4FGL_J2248.9+2106_daily_bin1406.fits outfile=/scratch/kocevski/483665/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1406.fits ra=342.246 dec=21.1159 rad=12.0 tmin=603763201.0 tmax=604022401.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 4.19
user 3.97
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483665/ft1_filtered_4FGL_J2248.9+2106_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/483665/ft2_4FGL_J2248.9+2106_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/483665/ltcube_603763201_604022401_4FGL_J2248.9+2106_daily_bin1406.fits outfile=/scratch/kocevski/483665/expmap_603763201_604022401_4FGL_J2248.9+2106_daily_bin1406.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/483665/ltcube_603763201_604022401_4FGL_J2248.9+2106_daily_bin1406.fits
.....................!
real 190.92
user 185.72
sys 4.83

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/483665/ft1_filtered_4FGL_J2248.9+2106_daily_bin1406.fits scfile=/scratch/kocevski/483665/ft2_4FGL_J2248.9+2106_daily_bin1406.fits outfile=/scratch/kocevski/483665/cmap_603763201_604022401_4FGL_J2248.9+2106_daily_bin1406.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.685       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1019       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    64.411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.075       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5584       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5782       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.052       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    88.287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2362       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2285       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.619       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.160       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0545       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85035       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99555       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=   9586.934     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2888 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.685        27.952        .78092E-06    .17506E-04
   2  norm          1.1022        .92586       -.27090E-06    .17543E-03
   3  Prefactor     .10000E-03    4.3396        .87982E-07** at limit **
   4  norm          1.9458        6.3896       -.96255E-05   -.93286E-03
   5  Prefactor     .10000E-03    2.6852       -.16632E-06** at limit **
   6  Prefactor     64.286        85.992       -.15588E-03    .16476E-04
   7  Prefactor     13.080        11.729        .84059E-05    .24585E-03
   8  Prefactor     .27219        .15550       -.12977E-06    .26815E-03
   9  Prefactor     4.5582        6.2869       -.33960E-06   -.22188E-04
  10  norm          3.5785        1.2982        .99758E-06    .80579E-03
  11  Prefactor     13.051        17.618       -.35483E-05    .30193E-04
  12  norm          1.6331        1.2015       -.17045E-07    .37217E-03
  13  Prefactor     4.9409        54.977       -.37739E-04   -.16336E-04
  14  Prefactor     88.286        18.793       -.17537E-05    .16847E-03
  15  Prefactor     .10000E-03    5.9988        .33027E-06** at limit **
  16  Prefactor     .24086        .14548        .59720E-07    .11129E-02
  17  Prefactor     4.2362        5.9537       -.72538E-06   -.76114E-04
  18  Prefactor     4.1142        6.2208       -.20418E-05   -.26472E-03
  19  Prefactor     9.2271        15.938       -.46726E-05    .19212E-05
  20  Prefactor     22.613        21.786       -.11386E-04    .61447E-04
  21  Prefactor     10.160        15.756        .33292E-06    .13207E-04
  22  Prefactor     6.5992        6.9249       -.11937E-05   -.15458E-04
  23  Prefactor     5.0517        17.024       -.10820E-04   -.38558E-04
  24  Normalizat    .85045        .21823        .13697E-04    .26069E-03
  25  Prefactor     .99554        .10768        .30955E-05    .36183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6854
  norm       = 1.10216
  Prefactor  = 0.0001
  norm       = 1.94576
  Prefactor  = 0.0001
  Prefactor  = 64.2857
  Prefactor  = 13.0799
  Prefactor  = 0.27219
  Prefactor  = 4.55825
  norm       = 3.57845
  Prefactor  = 13.0511
  norm       = 1.63313
  Prefactor  = 4.94095
  Prefactor  = 88.2856
  Prefactor  = 0.0001
  Prefactor  = 0.240864
  Prefactor  = 4.23617
  Prefactor  = 4.11418
  Prefactor  = 9.22707
  Prefactor  = 22.6133
  Prefactor  = 10.1602
  Prefactor  = 6.59915
  Prefactor  = 5.05171
  Normalizat = 0.85045
  Prefactor  = 0.995543
 **********
 **   18 **HESSE 
 **********

 FCN=   9586.934     FROM HESSE     STATUS=OK           441 CALLS     3329 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.685        27.955        .90274E-04   -1.4820    
   2  norm          1.1022        .92361        .82631E-04   -1.5498    
   3  Prefactor     .10000E-03    4.3485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9458        6.3581        .29709E-03   -1.5429    
   5  Prefactor     .10000E-03    2.6863        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     64.286        85.972        .25001E-03   -1.4103    
   7  Prefactor     13.080        11.743        .11077E-03   -1.4984    
   8  Prefactor     .27219        .15332        .28087E-04   -1.5604    
   9  Prefactor     4.5582        6.2824        .18855E-03   -1.5281    
  10  norm          3.5785        1.2974        .60965E-04   -1.5330    
  11  Prefactor     13.051        17.629        .11087E-03   -1.4985    
  12  norm          1.6331        1.2084        .88892E-04   -1.5452    
  13  Prefactor     4.9409        54.065        .18077E-03   -1.5263    
  14  Prefactor     88.286        18.778        .42761E-04   -1.3826    
  15  Prefactor     .10000E-03    6.0029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .24086        .14164        .25398E-04   -1.5610    
  17  Prefactor     4.2362        5.9436        .19578E-03   -1.5296    
  18  Prefactor     4.1142        6.1982        .19872E-03   -1.5302    
  19  Prefactor     9.2271        15.930        .13193E-03   -1.5100    
  20  Prefactor     22.613        21.810        .84221E-04   -1.4757    
  21  Prefactor     10.160        15.746        .12571E-03   -1.5070    
  22  Prefactor     6.5992        6.8817        .15621E-03   -1.5194    
  23  Prefactor     5.0517        16.915        .17885E-03   -1.5258    
  24  Normalizat    .85045        .25044        .38015E-03   -.98224    
  25  Prefactor     .99554        .12560        .19188E-03   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53374e-09
Minuit parameter uncertainties:
  1  27.9733
  2  0.923624
  3  6.16657e-05
  4  6.36029
  5  5.00377e-06
  6  86.1382
  7  11.7453
  8  0.153319
  9  6.2833
  10  1.29741
  11  17.636
  12  1.20847
  13  32.7257
  14  18.7796
  15  8.71097e-06
  16  0.141636
  17  5.94444
  18  6.19914
  19  15.9375
  20  21.818
  21  15.7524
  22  6.88247
  23  16.9309
  24  0.250781
  25  0.12564
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  8.829e+01  1.878e+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.955e-01  1.256e-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:  8.505e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.07
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.09e-07 +/- 6.56e-08
Energy Flux (Fixed Index): 1.17e-04 +/- 2.49e-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) = 9585.82194744
delta logL = 1.1118139936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9585.81964472
delta logL = 1.11411671483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.588       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6383       1.0000          .0000       10.000    
     3 'Normalizat'    .76276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0275       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=   9585.820     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      298 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.595        25.593        .53802E-04   -.84100E-04
   2  Index         2.6384        .25914        .21736E-02    .76739E-04
   3  Normalizat    .76295        .23848        .39838E-03   -.66549E-04
   4  Prefactor     1.0274        .12661        .18909E-03    .87179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.5946
  Index      = 2.63839
  Normalizat = 0.762947
  Prefactor  = 1.0274
 **********
 **   18 **HESSE 
 **********

 FCN=   9585.820     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.595        23.465        .21521E-05   -1.4215    
   2  Index         2.6384        .23746        .86945E-04   -.49192    
   3  Normalizat    .76295        .23770        .15935E-04   -1.0146    
   4  Prefactor     1.0274        .12635        .37818E-04   -.91822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18461e-10
Minuit parameter uncertainties:
  1  23.4686
  2  0.237577
  3  0.238027
  4  0.126386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483665': 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) = 9585.81964359
delta logL = 1.11411784941

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  5.559e+01  2.347e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.638e+00  2.376e-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:  1.027e+00  1.264e-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.629e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.97
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.64 +/- 0.24
Photon Flux (Free Index): 3.81e-07 +/- 8.64e-08
Energy Flux (Free Index): 9.65e-05 +/- 2.10e-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/483665/cmap_HighResolution_603763201_604022401_4FGL_J2248.9+2106_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.09e-07', energy_flux2='9.65e-05', photon_flux_error='6.56e-08', dlogl='1.11e+00', energy_flux='1.17e-04', photon_flux2='3.81e-07', job_status='DONE', time_completed='2021-09-28 21:24:10.952035', photon_index_error2='0.24', photon_index2='2.64', ts='54.07', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.85', time_epoch_completed='1632889450.95', return_code='0', job_id='483665', GAL2='1.03', EG2='0.76', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='8.64e-08', ts2='56.97', photon_index='2.30' WHERE bin_id='1406' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:24:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 483665: <4FGL_J2248.9+2106_daily_bin1406> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1406> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:10:38 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:10:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:10:40 2021
Terminated at Tue Sep 28 21:24:11 2021
Results reported at Tue Sep 28 21:24:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1406 342.246 21.1159 603763201 604022401 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 :                                   784.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

