/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 157 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_bin1345
RA = 342.246, Dec = 21.1159
tmin = 587952001, tmax = 588211201
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='483562', job_status='RUN', time_executed='2021-09-28 21:13:18.903069', time_epoch_executed='1632888798.9' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483562/ft1_4FGL_J2248.9+2106_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483562/ft2_4FGL_J2248.9+2106_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483562/ft1_4FGL_J2248.9+2106_daily_bin1345.fits outfile=/scratch/kocevski/483562/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1345.fits ra=342.246 dec=21.1159 rad=12.0 tmin=587952001.0 tmax=588211201.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.44
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483562/ft2_4FGL_J2248.9+2106_daily_bin1345.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/483562/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1345.fits evtable="EVENTS" outfile="/scratch/kocevski/483562/ft1_filtered_4FGL_J2248.9+2106_daily_bin1345.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483562/ft1_filtered_4FGL_J2248.9+2106_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/483562/ft2_4FGL_J2248.9+2106_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/483562/ltcube_587952001_588211201_4FGL_J2248.9+2106_daily_bin1345.fits outfile=/scratch/kocevski/483562/expmap_587952001_588211201_4FGL_J2248.9+2106_daily_bin1345.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/483562/ltcube_587952001_588211201_4FGL_J2248.9+2106_daily_bin1345.fits
.....................!
real 190.29
user 185.11
sys 4.84

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/483562/ft1_filtered_4FGL_J2248.9+2106_daily_bin1345.fits scfile=/scratch/kocevski/483562/ft2_4FGL_J2248.9+2106_daily_bin1345.fits outfile=/scratch/kocevski/483562/cmap_587952001_588211201_4FGL_J2248.9+2106_daily_bin1345.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.246 yref=21.1159 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483562/ft1_filtered_4FGL_J2248.9+2106_daily_bin1345.fits scfile=/scratch/kocevski/483562/ft2_4FGL_J2248.9+2106_daily_bin1345.fits outfile=/scratch/kocevski/483562/cmap_HighResolution_587952001_588211201_4FGL_J2248.9+2106_daily_bin1345.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.951       1.0000         .10000E-03   10000.    
     2 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.394       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3010       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5334       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.441       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2347       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    115.19       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96095E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.048       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.819       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.7598       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66794       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1528       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=   8749.008     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2968 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.972        52.386        .75169E-05    .52993E-05
   2  norm          .10000E-03    .49558       -.11601E-06** at limit **
   3  Prefactor     .10000E-03    5.3871        .77245E-06** at limit **
   4  norm          3.7827        3.7608        .29312E-06    .13522E-03
   5  Prefactor     .10000E-03    7.2129       -.12605E-06** at limit **
   6  Prefactor     16.375        87.126       -.30757E-04   -.15192E-05
   7  Prefactor     6.2931        10.946       -.70183E-05   -.90308E-04
   8  Prefactor     1.5334        .29816       -.26172E-07    .32220E-03
   9  Prefactor     .10000E-03    3.8375        .57598E-06** at limit **
  10  norm          2.2096        1.2931        .37031E-06   -.15460E-03
  11  Prefactor     22.444        24.443       -.51224E-05   -.96712E-05
  12  norm          4.2348        2.0240        .65526E-07    .17934E-03
  13  Prefactor     .10000E-03    13.482        .34060E-06** at limit **
  14  Prefactor     115.19        20.727       -.55010E-06    .65532E-04
  15  Prefactor     .10024E-03    8.5034       -.62100E-06** at limit **
  16  Prefactor     .65771        .18187       -.35352E-07    .20736E-02
  17  Prefactor     10.136        8.3890       -.37110E-07    .89221E-05
  18  Prefactor     .37046        3.6600       -.22601E-05   -.13302E-03
  19  Prefactor     23.044        15.964        .92108E-05    .12091E-03
  20  Prefactor     .10000E-03    9.4215        .57582E-06** at limit **
  21  Prefactor     42.818        27.556        .12863E-05   -.39711E-05
  22  Prefactor     .10000E-03    10.585       -.61281E-06** at limit **
  23  Prefactor     7.7595        19.345       -.17986E-05    .10944E-04
  24  Normalizat    .66788        .24807        .16623E-05    .10400E-03
  25  Prefactor     1.1528        .13002       -.40845E-06    .34233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.9722
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78273
  Prefactor  = 0.0001
  Prefactor  = 16.3746
  Prefactor  = 6.29307
  Prefactor  = 1.53341
  Prefactor  = 0.0001
  norm       = 2.20956
  Prefactor  = 22.4438
  norm       = 4.23476
  Prefactor  = 0.0001
  Prefactor  = 115.195
  Prefactor  = 0.000100245
  Prefactor  = 0.657709
  Prefactor  = 10.1357
  Prefactor  = 0.370465
  Prefactor  = 23.0436
  Prefactor  = 0.0001
  Prefactor  = 42.8175
  Prefactor  = 0.0001
  Prefactor  = 7.75951
  Normalizat = 0.667878
  Prefactor  = 1.15282
 **********
 **   18 **HESSE 
 **********

 FCN=   8749.008     FROM HESSE     STATUS=OK           443 CALLS     3411 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.972        52.350        .55643E-04   -1.4265    
   2  norm          .10000E-03    .89948        .12772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7827        3.7612        .17525E-03   -1.5319    
   5  Prefactor     .10000E-03    7.2349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.375        87.050        .98918E-04   -1.4898    
   7  Prefactor     6.2931        10.976        .15991E-03   -1.5206    
   8  Prefactor     1.5334        .29794        .21612E-04   -1.5460    
   9  Prefactor     .10000E-03    3.8388        .17895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2096        1.2841        .73854E-04   -1.5411    
  11  Prefactor     22.444        24.410        .84554E-04   -1.4760    
  12  norm          4.2348        2.0250        .88730E-04   -1.5296    
  13  Prefactor     .10000E-03    13.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     115.19        20.704        .37486E-04   -1.3557    
  15  Prefactor     .10024E-03    12.103        .10362       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .65771        .18058        .19673E-04   -1.5546    
  17  Prefactor     10.136        8.3878        .12586E-03   -1.5071    
  18  Prefactor     .37046        13.223        .34359E-02   -1.5586    
  19  Prefactor     23.044        15.969        .83434E-04   -1.4748    
  20  Prefactor     .10000E-03    9.4360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     42.818        27.541        .61264E-04   -1.4398    
  22  Prefactor     .10000E-03    10.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7595        19.265        .14395E-03   -1.5151    
  24  Normalizat    .66788        .26655        .45278E-03   -1.0518    
  25  Prefactor     1.1528        .14306        .19690E-03   -.87796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87049e-08
Minuit parameter uncertainties:
  1  52.3968
  2  8.50114e-06
  3  2.63036e-05
  4  3.76143
  5  2.39191e-06
  6  75.6812
  7  10.9791
  8  0.297935
  9  2.15379e-07
  10  1.2841
  11  24.4207
  12  2.02502
  13  5.0229e-06
  14  20.7057
  15  0.00344339
  16  0.180582
  17  8.38878
  18  4.42707
  19  15.9716
  20  4.96767e-06
  21  27.5487
  22  6.0414e-05
  23  19.28
  24  0.267071
  25  0.14311
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.152e+02  2.071e+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:  1.153e+00  1.431e-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:  6.679e-01  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 115.73
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.03e-07 +/- 7.23e-08
Energy Flux (Fixed Index): 1.53e-04 +/- 2.75e-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) = 8744.72653076
delta logL = 4.28133604761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8744.7260573
delta logL = 4.28180950799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    182.44       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8567       1.0000          .0000       10.000    
     3 'Normalizat'    .77159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1171       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=   8744.726     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      250 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     182.37        56.568        .74720E-03   -.38038E-05
   2  Index         1.8561        .20927        .66396E-01    .13828E-03
   3  Normalizat    .77184        .22974        .95866E-01    .27524E-04
   4  Prefactor     1.1170        .12640        .36971E-01   -.11245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 182.368
  Index      = 1.85615
  Normalizat = 0.771836
  Prefactor  = 1.11704
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.726     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     182.37        37.666        .29888E-04   -1.2999    
   2  Index         1.8561        .14280        .28569E-02   -.67997    
   3  Normalizat    .77184        .25340        .42478E-03   -1.0112    
   4  Prefactor     1.1170        .14083        .19977E-03   -.88924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45255e-12
Minuit parameter uncertainties:
  1  37.6708
  2  0.142828
  3  0.253787
  4  0.140878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483562': 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) = 8744.72604228
delta logL = 4.28182453206

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.824e+02  3.767e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.856e+00  1.428e-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.117e+00  1.409e-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.718e-01  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 124.68
Ra Dec: 342.246 21.116
Photon Index (Free Index): 1.86 +/- 0.14
Photon Flux (Free Index): 2.97e-07 +/- 6.67e-08
Energy Flux (Free Index): 3.02e-04 +/- 1.02e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/483562/cmap_HighResolution_587952001_588211201_4FGL_J2248.9+2106_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.03e-07', energy_flux2='3.02e-04', photon_flux_error='7.23e-08', dlogl='4.28e+00', energy_flux='1.53e-04', photon_flux2='2.97e-07', job_status='DONE', time_completed='2021-09-28 21:26:04.042606', photon_index_error2='0.14', photon_index2='1.86', ts='115.73', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='0.67', time_epoch_completed='1632889564.04', return_code='0', job_id='483562', GAL2='1.12', EG2='0.77', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='6.67e-08', ts2='124.68', photon_index='2.30' WHERE bin_id='1345' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:26:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 483562: <4FGL_J2248.9+2106_daily_bin1345> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1345> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:10:30 2021
Job was executed on host(s) <bullet0065>, 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:26:04 2021
Results reported at Tue Sep 28 21:26:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1345 342.246 21.1159 587952001 588211201 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

