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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1355
RA = 342.246, Dec = 21.1159
tmin = 590544001, tmax = 590803201
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='483580', job_status='RUN', time_executed='2021-09-28 21:13:14.802298', time_epoch_executed='1632888794.8' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483580

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483580/ft1_4FGL_J2248.9+2106_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483580/ft2_4FGL_J2248.9+2106_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483580/ft1_4FGL_J2248.9+2106_daily_bin1355.fits outfile=/scratch/kocevski/483580/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1355.fits ra=342.246 dec=21.1159 rad=12.0 tmin=590544001.0 tmax=590803201.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.22
user 3.98
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483580/ft1_filtered_4FGL_J2248.9+2106_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/483580/ft2_4FGL_J2248.9+2106_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/483580/ltcube_590544001_590803201_4FGL_J2248.9+2106_daily_bin1355.fits outfile=/scratch/kocevski/483580/expmap_590544001_590803201_4FGL_J2248.9+2106_daily_bin1355.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/483580/ltcube_590544001_590803201_4FGL_J2248.9+2106_daily_bin1355.fits
.....................!
real 191.90
user 185.97
sys 5.62

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/483580/ft1_filtered_4FGL_J2248.9+2106_daily_bin1355.fits scfile=/scratch/kocevski/483580/ft2_4FGL_J2248.9+2106_daily_bin1355.fits outfile=/scratch/kocevski/483580/cmap_590544001_590803201_4FGL_J2248.9+2106_daily_bin1355.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483580/ft1_filtered_4FGL_J2248.9+2106_daily_bin1355.fits scfile=/scratch/kocevski/483580/ft2_4FGL_J2248.9+2106_daily_bin1355.fits outfile=/scratch/kocevski/483580/cmap_HighResolution_590544001_590803201_4FGL_J2248.9+2106_daily_bin1355.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2284       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .57947E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4179       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9822       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5410       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.543       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .72009       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7386       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3665       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.160       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.496       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0914       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84849       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=   7689.612     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2909 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.054        .14450E-05** at limit **
   2  norm          .10000E-03    .48316        .19706E-07** at limit **
   3  Prefactor     5.2286        12.558        .45120E-05   -.26625E-03
   4  norm          .10000E-03    2.0590        .27329E-07** at limit **
   5  Prefactor     4.1574        10.060        .31515E-06   -.19092E-04
   6  Prefactor     .10000E-03    26.204       -.27889E-06** at limit **
   7  Prefactor     .10069E-03    5.7995       -.17462E-05** at limit **
   8  Prefactor     .23309        .14320       -.84459E-08    .37532E-04
   9  Prefactor     4.4164        7.1140        .22239E-05   -.45355E-03
  10  norm          5.9796        1.5418        .14305E-07    .20017E-03
  11  Prefactor     .10000E-03    9.6043       -.10294E-05** at limit **
  12  norm          1.5401        1.5638        .40818E-07    .16268E-04
  13  Prefactor     .10000E-03    12.682       -.75708E-06** at limit **
  14  Prefactor     63.545        17.040        .87634E-07    .22927E-03
  15  Prefactor     .10000E-03    10.111        .15591E-05** at limit **
  16  Prefactor     .71994        .17958        .19309E-09    .30582E-04
  17  Prefactor     3.7373        5.5002        .12217E-05    .65081E-03
  18  Prefactor     2.5843        7.4620        .58549E-06   -.74475E-04
  19  Prefactor     6.3670        9.8391        .20789E-05   -.33062E-03
  20  Prefactor     7.5304        18.218        .41169E-05    .34880E-03
  21  Prefactor     19.146        22.903       -.32091E-05   -.51131E-03
  22  Prefactor     .40827        2.8647       -.36378E-06    .21516E-03
  23  Prefactor     18.498        15.464        .99059E-07    .69043E-04
  24  Normalizat    1.0911        .21558       -.76308E-06    .19610E-03
  25  Prefactor     .84874        .11243       -.40211E-06    .24586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.22859
  norm       = 0.0001
  Prefactor  = 4.15744
  Prefactor  = 0.0001
  Prefactor  = 0.000100689
  Prefactor  = 0.233087
  Prefactor  = 4.41636
  norm       = 5.9796
  Prefactor  = 0.000100001
  norm       = 1.54008
  Prefactor  = 0.0001
  Prefactor  = 63.545
  Prefactor  = 0.000100001
  Prefactor  = 0.719944
  Prefactor  = 3.73732
  Prefactor  = 2.58428
  Prefactor  = 6.36698
  Prefactor  = 7.5304
  Prefactor  = 19.1461
  Prefactor  = 0.408272
  Prefactor  = 18.4978
  Normalizat = 1.09112
  Prefactor  = 0.848738
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.612     FROM HESSE     STATUS=OK           433 CALLS     3342 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .49848        .11893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2286        12.914        .87898E-03   -1.5251    
   4  norm          .10000E-03    2.0738        .12285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1574        10.035        .19769E-03   -1.5300    
   6  Prefactor     .10000E-03    26.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10069E-03    60.367        .39015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23309        .14230        .24926E-04   -1.5611    
   9  Prefactor     4.4164        7.2498        .95799E-03   -1.5288    
  10  norm          5.9796        1.5425        .52776E-04   -1.5219    
  11  Prefactor     .10000E-03    9.6673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5401        1.5472        .10554E-03   -1.5460    
  13  Prefactor     .10000E-03    12.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     63.545        17.051        .50341E-04   -1.4112    
  15  Prefactor     .10000E-03    10.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71994        .17923        .17508E-04   -1.5538    
  17  Prefactor     3.7373        5.5575        .20883E-03   -1.5321    
  18  Prefactor     2.5843        7.4390        .25355E-03   -1.5386    
  19  Prefactor     6.3670        9.9569        .79537E-03   -1.5203    
  20  Prefactor     7.5304        18.690        .14635E-03   -1.5159    
  21  Prefactor     19.146        23.972        .91500E-04   -1.4833    
  22  Prefactor     .40827        13.501        .27665E-02   -1.5580    
  23  Prefactor     18.498        15.447        .93130E-04   -1.4848    
  24  Normalizat    1.0911        .24925        .32770E-03   -.90037    
  25  Prefactor     .84874        .13182        .19916E-03   -.97956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4094e-08
Minuit parameter uncertainties:
  1  0.000391237
  2  1.30985e-06
  3  12.921
  4  4.35245e-06
  5  10.0395
  6  6.44841e-05
  7  0.012908
  8  0.142295
  9  7.25124
  10  1.54252
  11  0.000149464
  12  1.54728
  13  0.000124846
  14  17.0528
  15  0.000234751
  16  0.179226
  17  5.55823
  18  7.44166
  19  9.95948
  20  18.7046
  21  23.9842
  22  4.6961
  23  15.4507
  24  0.249523
  25  0.131868
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  6.354e+01  1.705e+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.487e-01  1.319e-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.091e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.75
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.22e-07 +/- 5.96e-08
Energy Flux (Fixed Index): 8.43e-05 +/- 2.26e-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) = 7689.35537672
delta logL = 0.25642880509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7689.35046047
delta logL = 0.261345059758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.000       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1178       1.0000          .0000       10.000    
     3 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83701       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=   7689.350     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      316 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.001        27.597        .45762E-04   -.71996E-04
   2  Index         2.1178        .25011        .35176E-02    .62746E-03
   3  Normalizat    1.1257        .24545        .32357E-03   -.31868E-04
   4  Prefactor     .83700        .13146        .20045E-03   -.52915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.0012
  Index      = 2.11775
  Normalizat = 1.12574
  Prefactor  = 0.836998
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.350     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.001        27.045        .91523E-05   -1.3951    
   2  Index         2.1178        .24497        .70352E-03   -.61438    
   3  Normalizat    1.1257        .24547        .12943E-04   -.88930    
   4  Prefactor     .83700        .13153        .80181E-05   -.98379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13808e-12
Minuit parameter uncertainties:
  1  27.0494
  2  0.245119
  3  0.245721
  4  0.13158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483580': 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) = 7689.35046046
delta logL = 0.261345064796

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  7.700e+01  2.705e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.118e+00  2.451e-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.370e-01  1.316e-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.126e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.29
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.12 +/- 0.25
Photon Flux (Free Index): 1.93e-07 +/- 6.63e-08
Energy Flux (Free Index): 1.02e-04 +/- 4.16e-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/483580/cmap_HighResolution_590544001_590803201_4FGL_J2248.9+2106_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-07', energy_flux2='1.02e-04', photon_flux_error='5.96e-08', dlogl='2.61e-01', energy_flux='8.43e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-28 21:25:13.188761', photon_index_error2='0.25', photon_index2='2.12', ts='46.75', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='4.16e-05', EG='1.09', time_epoch_completed='1632889513.19', return_code='0', job_id='483580', GAL2='0.84', EG2='1.13', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='6.63e-08', ts2='47.29', photon_index='2.30' WHERE bin_id='1355' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:25:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 483580: <4FGL_J2248.9+2106_daily_bin1355> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1355 342.246 21.1159 590544001 590803201 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 :                                   700.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

