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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1464
RA = 342.246, Dec = 21.1159
tmin = 618796801, tmax = 619056001
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='484834', job_status='RUN', time_executed='2021-09-28 21:19:11.076335', time_epoch_executed='1632889151.08' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484834/ft1_4FGL_J2248.9+2106_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484834/ft1_4FGL_J2248.9+2106_daily_bin1464.fits outfile=/scratch/kocevski/484834/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1464.fits ra=342.246 dec=21.1159 rad=12.0 tmin=618796801.0 tmax=619056001.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.68
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.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/484834/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1464.fits evtable="EVENTS" outfile="/scratch/kocevski/484834/ft1_filtered_4FGL_J2248.9+2106_daily_bin1464.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/484834/ft1_filtered_4FGL_J2248.9+2106_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/484834/ltcube_618796801_619056001_4FGL_J2248.9+2106_daily_bin1464.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/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.fits
.....................!
real 14.15
user 13.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484834/ft1_filtered_4FGL_J2248.9+2106_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/484834/ltcube_618796801_619056001_4FGL_J2248.9+2106_daily_bin1464.fits outfile=/scratch/kocevski/484834/expmap_618796801_619056001_4FGL_J2248.9+2106_daily_bin1464.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/484834/ltcube_618796801_619056001_4FGL_J2248.9+2106_daily_bin1464.fits
.....................!
real 191.91
user 185.91
sys 5.54

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/484834/ft1_filtered_4FGL_J2248.9+2106_daily_bin1464.fits scfile=/scratch/kocevski/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.fits outfile=/scratch/kocevski/484834/cmap_618796801_619056001_4FGL_J2248.9+2106_daily_bin1464.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484834/ft1_filtered_4FGL_J2248.9+2106_daily_bin1464.fits scfile=/scratch/kocevski/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.fits outfile=/scratch/kocevski/484834/cmap_HighResolution_618796801_619056001_4FGL_J2248.9+2106_daily_bin1464.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/484834/ft1_filtered_4FGL_J2248.9+2106_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/484834/ft2_4FGL_J2248.9+2106_daily_bin1464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484834/Model_4FGL_J2248.9+2106_daily_bin1464.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/484834/ft1_filtered_4FGL_J2248.9+2106_daily_bin1464.fits.....................!
real 74.81
user 73.32
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92608E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .42646E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32598       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.843       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50633       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12406E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12189E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3866       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81773       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=   7207.351     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2516 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.496        .32990E-06** at limit **
   2  norm          .10000E-03    .36274        .31706E-06** at limit **
   3  Prefactor     .10000E-03    27.776       -.48283E-05** at limit **
   4  norm          .10008E-03    4.6907       -.25272E-05** at limit **
   5  Prefactor     .10000E-03    26.940        .16655E-05** at limit **
   6  Prefactor     6.2226        232.15       -.78714E-05   -.58797E-04
   7  Prefactor     .10000E-03    6.5284       -.30530E-07** at limit **
   8  Prefactor     .32593        .19759        .83915E-07    .16644E-02
   9  Prefactor     .10000E-03    14.321        .29939E-06** at limit **
  10  norm          1.0258        .99066       -.30752E-06   -.17969E-02
  11  Prefactor     .10000E-03    21.240        .66047E-06** at limit **
  12  norm          .10000E-03    .63015        .72294E-07** at limit **
  13  Prefactor     .10000E-03    19.168        .16834E-06** at limit **
  14  Prefactor     29.844        13.293       -.10394E-07   -.20534E-03
  15  Prefactor     4.6503        12.690        .43632E-06    .96728E-05
  16  Prefactor     .50630        .15852       -.19398E-07   -.32552E-02
  17  Prefactor     .10000E-03    15.804        .72218E-06** at limit **
  18  Prefactor     1.8412        4.7699        .17945E-05    .37963E-03
  19  Prefactor     .10000E-03    2.4550        .32875E-07** at limit **
  20  Prefactor     .10000E-03    5.6933        .21299E-06** at limit **
  21  Prefactor     .10000E-03    16.196        .49668E-06** at limit **
  22  Prefactor     .10002E-03    5.4909        .28761E-05** at limit **
  23  Prefactor     .10000E-03    14.448        .49861E-06** at limit **
  24  Normalizat    1.3867        .21312       -.83694E-06   -.69634E-03
  25  Prefactor     .81769        .11383       -.10123E-05   -.97343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000100082
  Prefactor  = 0.000100001
  Prefactor  = 6.22264
  Prefactor  = 0.0001
  Prefactor  = 0.325934
  Prefactor  = 0.0001
  norm       = 1.02575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8444
  Prefactor  = 4.65029
  Prefactor  = 0.506301
  Prefactor  = 0.0001
  Prefactor  = 1.8412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Normalizat = 1.38667
  Prefactor  = 0.817685
 **********
 **   18 **HESSE 
 **********

 FCN=   7207.351     FROM HESSE     STATUS=OK           421 CALLS     2937 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .55014        .99029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.551        .41624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10008E-03    12.377        .27499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2226        237.99        .15915E-03   -1.5209    
   7  Prefactor     .10000E-03    6.5633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .32593        .19639        .28137E-04   -1.5594    
   9  Prefactor     .10000E-03    14.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0258        .95946        .79783E-03   -1.5505    
  11  Prefactor     .10000E-03    21.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .64046        .65782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.844        13.296        .73342E-04   -1.4615    
  15  Prefactor     4.6503        12.674        .18662E-03   -1.5277    
  16  Prefactor     .50630        .15821        .17883E-04   -1.5566    
  17  Prefactor     .10000E-03    16.524        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8412        4.7969        .29134E-03   -1.5437    
  19  Prefactor     .10000E-03    2.4556        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    13.601        .32841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3867        .24972        .28856E-03   -.81015    
  25  Prefactor     .81769        .13515        .19990E-03   -.99080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71015e-09
Minuit parameter uncertainties:
  1  9.70254e-05
  2  9.73861e-06
  3  0.000681143
  4  0.00201987
  5  0.000365547
  6  77.2975
  7  2.10216e-05
  8  0.19639
  9  4.13422e-05
  10  0.95947
  11  0.000162395
  12  2.91648e-06
  13  2.5204e-05
  14  13.2975
  15  12.6818
  16  0.158213
  17  0.000129891
  18  4.79787
  19  1.83755e-06
  20  2.06781e-05
  21  7.94659e-05
  22  0.0010619
  23  3.79449e-05
  24  0.249939
  25  0.135209
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.984e+01  1.330e+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.177e-01  1.352e-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.387e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.41
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 4.64e-08
Energy Flux (Fixed Index): 3.96e-05 +/- 1.76e-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) = 7207.1811324
delta logL = 0.169425683946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7207.18005747
delta logL = 0.170500615075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.891       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0558       1.0000          .0000       10.000    
     3 'Normalizat'    1.4142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80859       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=   7207.180     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      271 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.870        349.20        .16496E-02    .56631E-04
   2  Index         2.0551        3.3569        .12110        .12120E-03
   3  Normalizat    1.4146        .19440        .64724E-01    .17288E-04
   4  Prefactor     .80845        .61319E-01    .43829E-01    .35407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8705
  Index      = 2.05508
  Normalizat = 1.41461
  Prefactor  = 0.808452
 **********
 **   18 **HESSE 
 **********

 FCN=   7207.180     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.870        20.280        .32992E-03   -1.4493    
   2  Index         2.0551        .42014        .60105E-02   -.62980    
   3  Normalizat    1.4146        .24890        .28630E-03   -.80207    
   4  Prefactor     .80845        .13497        .20096E-03   -.99418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39544e-12
Minuit parameter uncertainties:
  1  20.2834
  2  0.420903
  3  0.249112
  4  0.135028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484834': 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) = 7207.18005239
delta logL = 0.170505694627

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.687e+01  2.028e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.055e+00  4.209e-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.085e-01  1.350e-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.415e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.73
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.06 +/- 0.42
Photon Flux (Free Index): 8.30e-08 +/- 5.36e-08
Energy Flux (Free Index): 5.03e-05 +/- 3.55e-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/484834/cmap_HighResolution_618796801_619056001_4FGL_J2248.9+2106_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='5.03e-05', photon_flux_error='4.64e-08', dlogl='1.71e-01', energy_flux='3.96e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-09-28 21:29:54.796444', photon_index_error2='0.42', photon_index2='2.06', ts='18.41', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.55e-05', EG='1.39', time_epoch_completed='1632889794.8', return_code='0', job_id='484834', GAL2='0.81', EG2='1.41', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='5.36e-08', ts2='18.73', photon_index='2.30' WHERE bin_id='1464' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:29:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 484834: <4FGL_J2248.9+2106_daily_bin1464> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1464> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:15:12 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:15:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:15:14 2021
Terminated at Tue Sep 28 21:29:55 2021
Results reported at Tue Sep 28 21:29:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1464 342.246 21.1159 618796801 619056001 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 :                                   640.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.64 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.

