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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1533
RA = 342.246, Dec = 21.1159
tmin = 636681601, tmax = 636940801
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='484934', job_status='RUN', time_executed='2021-09-28 21:17:27.008739', time_epoch_executed='1632889047.01' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484934

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484934/ft1_4FGL_J2248.9+2106_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484934/ft2_4FGL_J2248.9+2106_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484934/ft1_4FGL_J2248.9+2106_daily_bin1533.fits outfile=/scratch/kocevski/484934/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1533.fits ra=342.246 dec=21.1159 rad=12.0 tmin=636681601.0 tmax=636940801.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.22
user 4.94
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484934/ft2_4FGL_J2248.9+2106_daily_bin1533.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/484934/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1533.fits evtable="EVENTS" outfile="/scratch/kocevski/484934/ft1_filtered_4FGL_J2248.9+2106_daily_bin1533.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.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484934/ft1_filtered_4FGL_J2248.9+2106_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/484934/ft2_4FGL_J2248.9+2106_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/484934/ltcube_636681601_636940801_4FGL_J2248.9+2106_daily_bin1533.fits outfile=/scratch/kocevski/484934/expmap_636681601_636940801_4FGL_J2248.9+2106_daily_bin1533.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/484934/ltcube_636681601_636940801_4FGL_J2248.9+2106_daily_bin1533.fits
.....................!
real 190.40
user 185.23
sys 4.86

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/484934/ft1_filtered_4FGL_J2248.9+2106_daily_bin1533.fits scfile=/scratch/kocevski/484934/ft2_4FGL_J2248.9+2106_daily_bin1533.fits outfile=/scratch/kocevski/484934/cmap_636681601_636940801_4FGL_J2248.9+2106_daily_bin1533.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484934/ft1_filtered_4FGL_J2248.9+2106_daily_bin1533.fits scfile=/scratch/kocevski/484934/ft2_4FGL_J2248.9+2106_daily_bin1533.fits outfile=/scratch/kocevski/484934/cmap_HighResolution_636681601_636940801_4FGL_J2248.9+2106_daily_bin1533.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/484934/ft1_filtered_4FGL_J2248.9+2106_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/484934/ft2_4FGL_J2248.9+2106_daily_bin1533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484934/Model_4FGL_J2248.9+2106_daily_bin1533.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/484934/ft1_filtered_4FGL_J2248.9+2106_daily_bin1533.fits....................!
real 74.55
user 73.29
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9090       1.0000         .10000E-03   10000.    
     2 'norm      '    .94865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8501       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9696       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28396E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26012       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10829E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3019       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6707       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2097       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.0464       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84364       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0715       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=   7316.725     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2921 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9703        116.65        .91892E-05   -.14220E-04
   2  norm          .94856        .86851       -.38000E-07   -.28833E-03
   3  Prefactor     .10000E-03    2.5348        .53786E-07** at limit **
   4  norm          3.8494        4.7501       -.53827E-06   -.44506E-03
   5  Prefactor     8.9700        9.0438        .18601E-06    .61214E-05
   6  Prefactor     .10001E-03    338.37       -.66398E-04** at limit **
   7  Prefactor     .10000E-03    2.1717        .81261E-07** at limit **
   8  Prefactor     .26005        .18297        .22644E-07   -.12180E-02
   9  Prefactor     .10000E-03    4.6208        .46018E-06** at limit **
  10  norm          .10000E-03    .58832        .13194E-06** at limit **
  11  Prefactor     .10000E-03    8.8938       -.43502E-05** at limit **
  12  norm          6.5495        2.5942        .71548E-06    .91844E-03
  13  Prefactor     53.524        41.758        .11765E-05    .33043E-04
  14  Prefactor     1.2984        17.885       -.21375E-04   -.39025E-03
  15  Prefactor     .10000E-03    5.7988        .30036E-06** at limit **
  16  Prefactor     .45721        .15912        .75751E-07    .15138E-02
  17  Prefactor     .10000E-03    9.6412       -.23315E-05** at limit **
  18  Prefactor     7.6701        7.7012       -.17992E-05   -.94410E-04
  19  Prefactor     5.8201        12.954       -.59702E-05   -.67151E-04
  20  Prefactor     7.1987        18.019        .29811E-04   -.19885E-04
  21  Prefactor     .10000E-03    9.3252        .67782E-05** at limit **
  22  Prefactor     .10000E-03    4.5479       -.73011E-06** at limit **
  23  Prefactor     9.0426        17.902        .11462E-04   -.14602E-04
  24  Normalizat    .84379        .22122       -.27689E-05    .24301E-03
  25  Prefactor     1.0715        .12122       -.22861E-06    .40639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97027
  norm       = 0.948561
  Prefactor  = 0.0001
  norm       = 3.84939
  Prefactor  = 8.96999
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.260049
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.54955
  Prefactor  = 53.5235
  Prefactor  = 1.29843
  Prefactor  = 0.0001
  Prefactor  = 0.457205
  Prefactor  = 0.0001
  Prefactor  = 7.67008
  Prefactor  = 5.82013
  Prefactor  = 7.1987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.0426
  Normalizat = 0.843793
  Prefactor  = 1.07151
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.725     FROM HESSE     STATUS=OK           431 CALLS     3352 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9703        116.75        .23822E-03   -1.5363    
   2  norm          .94856        .84303        .73789E-03   -1.5513    
   3  Prefactor     .10000E-03    2.5361        .13300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8494        4.7421        .19902E-03   -1.5316    
   5  Prefactor     8.9700        9.0365        .13383E-03   -1.5109    
   6  Prefactor     .10001E-03    342.90        .19887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1739        .12310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26005        .17614        .29246E-03   -1.5606    
   9  Prefactor     .10000E-03    4.6261        .17957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4422        .12636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5495        2.5845        .81996E-04   -1.5196    
  13  Prefactor     53.524        41.820        .54825E-04   -1.4243    
  14  Prefactor     1.2984        18.708        .38715E-03   -1.5480    
  15  Prefactor     .10000E-03    5.8007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45721        .15869        .18601E-04   -1.5573    
  17  Prefactor     .10000E-03    9.7393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6701        7.6919        .14479E-03   -1.5154    
  19  Prefactor     5.8201        12.956        .16633E-03   -1.5225    
  20  Prefactor     7.1987        17.785        .14939E-03   -1.5171    
  21  Prefactor     .10000E-03    9.3143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6836        .35601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.0426        17.843        .13326E-03   -1.5106    
  24  Normalizat    .84379        .25534        .35477E-03   -.98464    
  25  Prefactor     1.0715        .14200        .18087E-03   -.90382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09305e-09
Minuit parameter uncertainties:
  1  37.3214
  2  0.843039
  3  2.16255e-06
  4  4.74254
  5  9.03786
  6  0.00346904
  7  4.93272e-06
  8  0.176137
  9  2.10805e-06
  10  3.205e-05
  11  1.01547e-05
  12  2.58451
  13  41.8429
  14  9.86052
  15  6.12472e-06
  16  0.158692
  17  4.47236e-05
  18  7.69285
  19  12.9622
  20  17.7979
  21  5.69224e-05
  22  4.42675e-05
  23  17.8537
  24  0.255703
  25  0.142047
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.298e+00  9.861e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.072e+00  1.420e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.438e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/484934/likelihoodResults_636681601_636940801_4FGL_J2248.9+2106_daily_bin1533.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): 0
logL (Free Index) = 7316.68426394
delta logL = 0.0404590448898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7316.68358552
delta logL = 0.0411374699152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1972       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8618       1.0000          .0000       10.000    
     3 'Normalizat'    .83517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0736       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=   7316.684     FROM MIGRAD    STATUS=FAILED        84 CALLS      246 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1975        17.609        .29388E-03   -.61237E-04
   2  Index         2.8631        2.8425        .11582E-01    .23371E-03
   3  Normalizat    .83507        .24959        .35642E-03   -.66728E-04
   4  Prefactor     1.0736        .14155        .18069E-03   -.10520E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7316.684     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      322 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1975        17.609        .22998E-03   -1.5489    
   2  Index         2.8631        2.8425        .15360E-02   -.44159    
   3  Normalizat    .83507        .24959        .37821E-03   -.98781    
   4  Prefactor     1.0736        .14155        .13755E-03   -.90314    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7316.684     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      351 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1975        7.7090        .11755E-04   -.70019E-04
   2  Index         2.8631        1.9671        .23163E-02   -.56001E-05
   3  Normalizat    .83507        .24981        .14257E-04   -.37957E-04
   4  Prefactor     1.0736        .14151        .36138E-04   -.59269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.19746
  Index      = 2.86313
  Normalizat = 0.835067
  Prefactor  = 1.07364
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.684     FROM HESSE     STATUS=OK            23 CALLS      374 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1975        7.0282        .23511E-05   -1.5489    
   2  Index         2.8631        1.8834        .92653E-04   -.44159    
   3  Normalizat    .83507        .24967        .28514E-05   -.98781    
   4  Prefactor     1.0736        .14142        .72276E-05   -.90314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34967e-12
Minuit parameter uncertainties:
  1  5.80284
  2  1.94261
  3  0.25001
  4  0.141467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484934': 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) = 7316.68358493
delta logL = 0.0411380589439

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.197e+00  5.803e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.863e+00  1.943e+00  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.074e+00  1.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.351e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/484934/cmap_HighResolution_636681601_636940801_4FGL_J2248.9+2106_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-28 21:30:09.421315', job_id='484934', GAL2='1.07', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632889809.42', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.11e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1533' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 484934: <4FGL_J2248.9+2106_daily_bin1533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1533 342.246 21.1159 636681601 636940801 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 :                                   757.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

