/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7557
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2248.9+2106_daily_bin490
RA = 342.246, Dec = 21.1159
tmin = 366336001, tmax = 366595201
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='479138', job_status='RUN', time_executed='2021-09-28 20:55:49.038879', time_epoch_executed='1632887749.04' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479138

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479138/ft1_4FGL_J2248.9+2106_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479138/ft2_4FGL_J2248.9+2106_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479138/ft1_4FGL_J2248.9+2106_daily_bin490.fits outfile=/scratch/kocevski/479138/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin490.fits ra=342.246 dec=21.1159 rad=12.0 tmin=366336001.0 tmax=366595201.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 5.56
user 5.29
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479138/ft1_filtered_4FGL_J2248.9+2106_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/479138/ft2_4FGL_J2248.9+2106_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/479138/ltcube_366336001_366595201_4FGL_J2248.9+2106_daily_bin490.fits outfile=/scratch/kocevski/479138/expmap_366336001_366595201_4FGL_J2248.9+2106_daily_bin490.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/479138/ltcube_366336001_366595201_4FGL_J2248.9+2106_daily_bin490.fits
.....................!
real 190.00
user 184.94
sys 4.65

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/479138/ft1_filtered_4FGL_J2248.9+2106_daily_bin490.fits scfile=/scratch/kocevski/479138/ft2_4FGL_J2248.9+2106_daily_bin490.fits outfile=/scratch/kocevski/479138/cmap_366336001_366595201_4FGL_J2248.9+2106_daily_bin490.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479138/ft1_filtered_4FGL_J2248.9+2106_daily_bin490.fits scfile=/scratch/kocevski/479138/ft2_4FGL_J2248.9+2106_daily_bin490.fits outfile=/scratch/kocevski/479138/cmap_HighResolution_366336001_366595201_4FGL_J2248.9+2106_daily_bin490.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1804       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94630E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    66.861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9733       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.843       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7128       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.452       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28976       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33742       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.882       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5793       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90189       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81424       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6892.977     FROM MIGRAD    STATUS=FAILED      1023 CALLS     3456 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1785        36.062        .16148E-03   -.43649E-05
   2  norm          1.0364        .85941        .70340E-03    .15479E-02
   3  Prefactor     .10000E-03    5.8107        .18142E-02** at limit **
   4  norm          1.1273        2.5912        .20165E-03    .33544E-04
   5  Prefactor     .10001E-03    106.80        .60935E-02** at limit **
   6  Prefactor     66.860        87.767        .49084E-04   -.10654E-05
   7  Prefactor     .10000E-03    2.4752        .12745E-02** at limit **
   8  Prefactor     1.9732        .34039        .18825E-04   -.14651E-02
   9  Prefactor     10.842        13.525        .12167E-03   -.15417E-04
  10  norm          .10000E-03    .40501        .10135E-03** at limit **
  11  Prefactor     1.7150        44.776        .16058E-02    .11940E-03
  12  norm          3.8234        1.9092        .78649E-04   -.13515E-03
  13  Prefactor     .10000E-03    14.008        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.1029        .18142E-02** at limit **
  15  Prefactor     28.443        25.206        .75109E-04   -.54642E-04
  16  Prefactor     .28975        .16223        .22438E-04   -.85171E-03
  17  Prefactor     .36200        13.353        .33436E-02    .30810E-02
  18  Prefactor     .10000E-03    2.2932        .12254E-02** at limit **
  19  Prefactor     .10000E-03    11.620        .18142E-02** at limit **
  20  Prefactor     .10000E-03    17.752        .18142E-02** at limit **
  21  Prefactor     24.886        19.461        .80306E-04    .74549E-04
  22  Prefactor     3.5825        5.3197        .10680E-02    .22942E-03
  23  Prefactor     .10000E-03    32.867        .18142E-02** at limit **
  24  Normalizat    .90199        .24100        .31509E-03   -.17113E-03
  25  Prefactor     .81418        .13101        .18226E-03   -.12242E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6892.977     FROM SIMPLEX   STATUS=UNCHANGED   1231 CALLS     4687 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1785        36.062        .31477E-06   -1.5211    
   2  norm          1.0364        .85941        .31075E-06   -1.5504    
   3  Prefactor     .10000E-03    5.8107        .37846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1273        2.5912        .30534E-06   -1.5496    
   5  Prefactor     .10001E-03    106.80        .18124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     66.860        87.767        .27736E-06   -1.4071    
   7  Prefactor     .10000E-03    2.4752        .23874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9732        .34039        .30514E-06   -1.5427    
   9  Prefactor     10.842        13.525        .29762E-06   -1.5049    
  10  norm          .10000E-03    .40501        .49681E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7150        44.776        .29089E-06   -1.5446    
  12  norm          3.8234        1.9092        .30252E-06   -1.5317    
  13  Prefactor     .10000E-03    14.008        .27038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1029        .37119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.443        25.206        .28957E-06   -1.4641    
  16  Prefactor     .28975        .16223        .30855E-06   -1.5600    
  17  Prefactor     .36200        13.353        .30827E-06   -1.5588    
  18  Prefactor     .10000E-03    2.2932        .78525E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.620        .43551E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.752        .64680E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.886        19.461        .29096E-06   -1.4710    
  22  Prefactor     3.5825        5.3197        .30321E-06   -1.5329    
  23  Prefactor     .10000E-03    32.867        .64980E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90199        .24100        .19064E-06   -.96390    
  25  Prefactor     .81418        .13101        .19623E-06   -.99208    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6892.977     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     5099 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1785        36.055        .64593E-05    .70402E-07
   2  norm          1.0364        .85928        .14068E-03    .56569E-05
   3  Prefactor     .10000E-03    5.8114        .36285E-03** at limit **
   4  norm          1.1273        2.5911        .80662E-05    .11275E-05
   5  Prefactor     .10000E-03    109.57        .24374E-03** at limit **
   6  Prefactor     66.860        87.762        .98169E-05    .23161E-06
   7  Prefactor     .10000E-03    2.4752        .25490E-03** at limit **
   8  Prefactor     1.9732        .33981        .37649E-05    .22466E-03
   9  Prefactor     10.842        13.526        .48669E-05    .18687E-05
  10  norm          .10000E-03    .40501        .20270E-04** at limit **
  11  Prefactor     1.7147        44.682        .64231E-04   -.17700E-06
  12  norm          3.8234        1.9092        .31460E-05    .43365E-06
  13  Prefactor     .10000E-03    14.009        .36285E-03** at limit **
  14  Prefactor     .10000E-03    6.1045        .36285E-03** at limit **
  15  Prefactor     28.443        25.204        .30044E-05    .75681E-06
  16  Prefactor     .28975        .16222        .89752E-06    .17117E-04
  17  Prefactor     .36202        13.428        .66872E-03    .12421E-03
  18  Prefactor     .10000E-03    2.2933        .24509E-03** at limit **
  19  Prefactor     .10000E-03    11.625        .36285E-03** at limit **
  20  Prefactor     .10000E-03    17.757        .36285E-03** at limit **
  21  Prefactor     24.886        19.460        .16061E-04    .84940E-07
  22  Prefactor     3.5825        5.3165        .42721E-04   -.15967E-05
  23  Prefactor     .10000E-03    32.890        .36285E-03** at limit **
  24  Normalizat    .90199        .24113        .12603E-04    .79379E-05
  25  Prefactor     .81418        .13106        .36452E-04    .12974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17854
  norm       = 1.03643
  Prefactor  = 0.0001
  norm       = 1.12725
  Prefactor  = 0.0001
  Prefactor  = 66.8602
  Prefactor  = 0.0001
  Prefactor  = 1.97324
  Prefactor  = 10.8422
  norm       = 0.0001
  Prefactor  = 1.71469
  norm       = 3.82339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.443
  Prefactor  = 0.289752
  Prefactor  = 0.362017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8859
  Prefactor  = 3.58249
  Prefactor  = 0.0001
  Normalizat = 0.90199
  Prefactor  = 0.814179
 **********
 **   18 **HESSE 
 **********

 FCN=   6892.977     FROM HESSE     STATUS=OK           403 CALLS     5502 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1785        36.053        .64593E-05   -1.5211    
   2  norm          1.0364        .85927        .56272E-05   -1.5504    
   3  Prefactor     .10000E-03    5.8114        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1273        2.5912        .16132E-05   -1.5496    
   5  Prefactor     .10000E-03    109.57        .48748E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     66.860        87.852        .19634E-05   -1.4071    
   7  Prefactor     .10000E-03    2.4752        .50980E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9732        .33981        .75299E-06   -1.5427    
   9  Prefactor     10.842        13.529        .97339E-06   -1.5049    
  10  norm          .10000E-03    .40501        .40539E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7147        44.579        .25692E-05   -1.5446    
  12  norm          3.8234        1.9092        .31460E-05   -1.5317    
  13  Prefactor     .10000E-03    14.009        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1046        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.443        25.164        .60087E-06   -1.4641    
  16  Prefactor     .28975        .16219        .37194E-06   -1.5600    
  17  Prefactor     .36202        13.426        .13374E-03   -1.5588    
  18  Prefactor     .10000E-03    2.2933        .49017E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.626        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.757        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.886        19.460        .16061E-04   -1.4710    
  22  Prefactor     3.5825        5.3169        .17088E-05   -1.5329    
  23  Prefactor     .10000E-03    32.891        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90199        .24119        .25207E-05   -.96390    
  25  Prefactor     .81418        .13110        .72905E-05   -.99208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41731e-13
Minuit parameter uncertainties:
  1  29.8771
  2  0.85928
  3  2.55245e-07
  4  2.59142
  5  4.87164e-05
  6  88.0228
  7  9.44668e-08
  8  0.339807
  9  13.5331
  10  9.93983e-09
  11  17.4999
  12  1.90918
  13  4.69787e-07
  14  6.00831e-07
  15  25.1734
  16  0.162194
  17  4.40974
  18  9.71556e-08
  19  1.09358e-06
  20  1.33512e-06
  21  19.4651
  22  5.31755
  23  1.51948e-06
  24  0.24148
  25  0.131151
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  6.008e-07  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.142e-01  1.312e-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:  9.020e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 6.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479138/likelihoodResults_366336001_366595201_4FGL_J2248.9+2106_daily_bin490.txt

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): 102
logL (Free Index) = 6892.97827261
delta logL = -0.000780913872404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6892.97749162
delta logL = 7.60328475735e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2824       1.0000          .0000       10.000    
     3 'Normalizat'    .90199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81417       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=   6892.977     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    40.525        .18142E-02** at limit **
   2  Index         2.2517        5.9071        .50000        .17817E-04
   3  Normalizat    .90199        .12644E-01    .31509E-03   -.23778E-04
   4  Prefactor     .81418        .70303E-02    .18226E-03   -.66118E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100408
  Index      = 2.25169
  Normalizat = 0.901989
  Prefactor  = 0.81418
 **********
 **   18 **HESSE 
 **********

 FCN=   6892.977     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10041E-03    188.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2517        6.1120        .50000       -.58196    
   3  Normalizat    .90199        .28077E-01    .12603E-04   -.96390    
   4  Prefactor     .81418        .15612E-01    .72905E-05   -.99208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.36903e-09
Minuit parameter uncertainties:
  1  0.017615
  2  345.747
  3  0.0280773
  4  0.0156116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479138': 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): 102
logL (Free Index) = 6892.97749151
delta logL = 1.84060809261e-07

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.004e-04  1.761e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.252e+00  3.457e+02  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.142e-01  1.561e-02  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:  9.020e-01  2.808e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.246 21.116

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/479138/cmap_HighResolution_366336001_366595201_4FGL_J2248.9+2106_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-28 21:10:56.692500', job_id='479138', GAL2='0.81', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632888656.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='490' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:10:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 479138: <4FGL_J2248.9+2106_daily_bin490> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin490 342.246 21.1159 366336001 366595201 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 :                                   904.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

