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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin451
RA = 327.163, Dec = 6.8791
tmin = 356227201, tmax = 356486401
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='950931', job_status='RUN', time_executed='2021-09-27 16:23:38.003902', time_epoch_executed='1632785018.0' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950931

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950931/ft1_4FGL_J2148.6+0652_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/950931/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950931/ft1_4FGL_J2148.6+0652_daily_bin451.fits outfile=/scratch/kocevski/950931/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin451.fits ra=327.163 dec=6.8791 rad=12.0 tmin=356227201.0 tmax=356486401.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.22
user 2.96
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.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/950931/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.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.59
user 0.42
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/950931/ltcube_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.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/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits
.....................!
real 4.48
user 4.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/950931/ltcube_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.fits outfile=/scratch/kocevski/950931/expmap_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.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/950931/ltcube_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.fits
.....................!
real 197.02
user 189.90
sys 4.52

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2148.6+0652 @ 327.163 6.8791

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits scfile=/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits outfile=/scratch/kocevski/950931/cmap_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.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=327.163 yref=6.8791 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.62
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits scfile=/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits outfile=/scratch/kocevski/950931/cmap_HighResolution_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.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=327.163 yref=6.8791 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.63
user 0.46
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950931/Model_4FGL_J2148.6+0652_daily_bin451.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/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits.....................!
real 30.96
user 29.22
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits', '/scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits', expMap='/scratch/kocevski/950931/expmap_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.fits', expCube='/scratch/kocevski/950931/ltcube_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950931/Model_4FGL_J2148.6+0652_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2148.6+0652'

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.891e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.658e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  2.404e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  4.369e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950931/ft1_filtered_4FGL_J2148.6+0652_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/950931/ft2_4FGL_J2148.6+0652_daily_bin451.fits
Exposure map: /scratch/kocevski/950931/expmap_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.fits
Exposure cube: /scratch/kocevski/950931/ltcube_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950931/Model_4FGL_J2148.6+0652_daily_bin451.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) = 2001.35870352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.695       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29267E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6274       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.684       1.0000         .10000E-03   10000.    
    12 'norm      '    8.1644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    217.28       1.0000         .10000E-03   10000.    
    15 'norm      '    .10604E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10825E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.687       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.450       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    66.395       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.856       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.412       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92632       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90363       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2001.316     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3487 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.690        68.418       -.17674E-05   -.42557E-04
   2  Prefactor     .10000E-03    34.792        .28400E-06** at limit **
   3  Prefactor     51.989        75.925        .10057E-05   -.20037E-04
   4  Prefactor     .10000E-03    89.746        .10761E-05** at limit **
   5  Prefactor     .10000E-03    187.54        .37668E-05** at limit **
   6  Prefactor     .10000E-03    434.98        .24858E-04** at limit **
   7  Prefactor     .10000E-03    3.4929        .68090E-07** at limit **
   8  Prefactor     .10000E-03    5.7434        .23810E-06** at limit **
   9  Prefactor     5.6189        4.9226        .10952E-05   -.63396E-04
  10  Prefactor     .10000E-03    49.795        .11385E-05** at limit **
  11  Prefactor     52.614        90.567        .16039E-05    .13772E-04
  12  norm          8.1657        6.0356        .17476E-06   -.61136E-04
  13  Prefactor     65.994        121.34       -.20354E-05   -.24742E-04
  14  Prefactor     217.42        138.73        .80166E-06    .11036E-04
  15  norm          .10000E-03    3.0474        .78645E-06** at limit **
  16  norm          .10000E-03    43.899       -.25555E-06** at limit **
  17  Prefactor     .10000E-03    321.39       -.19031E-04** at limit **
  18  Prefactor     18.685        24.897        .41711E-06    .53185E-05
  19  norm          .10000E-03    .72469        .17426E-06** at limit **
  20  Prefactor     .10000E-03    88.660        .43673E-05** at limit **
  21  Prefactor     21.460        38.012        .67472E-06   -.83578E-05
  22  Prefactor     .10000E-03    27.543        .12372E-05** at limit **
  23  Prefactor     66.363        72.565        .46970E-06   -.41087E-06
  24  Prefactor     43.854        32.366        .16642E-06   -.11246E-04
  25  Prefactor     .10000E-03    .20819        .25592E-07** at limit **
  26  Prefactor     27.412        23.663        .16546E-06   -.55257E-05
  27  Normalizat    .92656        .48459        .31572E-05   -.11673E-03
  28  Prefactor     .90348        .23408       -.49454E-05   -.34752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.6897
  Prefactor  = 0.0001
  Prefactor  = 51.9888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61887
  Prefactor  = 0.0001
  Prefactor  = 52.6141
  norm       = 8.16572
  Prefactor  = 65.9944
  Prefactor  = 217.424
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.6848
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.4595
  Prefactor  = 0.0001
  Prefactor  = 66.3633
  Prefactor  = 43.854
  Prefactor  = 0.0001
  Prefactor  = 27.412
  Normalizat = 0.926562
  Prefactor  = 0.903484
 **********
 **   18 **HESSE 
 **********

 FCN=   2001.316     FROM HESSE     STATUS=OK           513 CALLS     4000 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.690        68.412        .42663E-04   -1.3822    
   2  Prefactor     .10000E-03    34.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     51.989        75.942        .55637E-04   -1.4265    
   4  Prefactor     .10000E-03    89.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    189.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    433.91        .19855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4949        .81665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7513        .10474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6189        4.8957        .88588E-04   -1.5234    
  10  Prefactor     .10000E-03    49.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.614        90.641        .27628E-03   -1.4256    
  12  norm          8.1657        6.0400        .91040E-04   -1.5136    
  13  Prefactor     65.994        121.12        .49402E-04   -1.4081    
  14  Prefactor     217.42        139.98        .13718E-03   -1.2748    
  15  norm          .10000E-03    3.0912        .76248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    44.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    313.00        .40588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.685        24.940        .92652E-04   -1.4843    
  19  norm          .10000E-03    .72807        .37208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    89.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.460        38.001        .86484E-04   -1.4781    
  22  Prefactor     .10000E-03    27.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     66.363        72.636        .49255E-04   -1.4077    
  24  Prefactor     43.854        32.424        .60538E-04   -1.4383    
  25  Prefactor     .10000E-03    .20825        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     27.412        23.664        .76518E-04   -1.4660    
  27  Normalizat    .92656        .55306        .38031E-03   -.95533    
  28  Prefactor     .90348        .26131        .18987E-03   -.96019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42267e-10
Minuit parameter uncertainties:
  1  68.4724
  2  9.47064e-05
  3  76.0834
  4  0.000131667
  5  0.00022648
  6  0.000887819
  7  3.70839e-06
  8  9.0039e-06
  9  4.896
  10  7.06496e-05
  11  90.8799
  12  6.04046
  13  121.574
  14  140.194
  15  2.07482e-05
  16  0.000139279
  17  0.0009329
  18  24.9542
  19  1.37905e-06
  20  0.000436488
  21  38.0436
  22  4.34381e-05
  23  72.7329
  24  32.4371
  25  1.04872e-07
  26  23.6725
  27  0.55651
  28  0.261674
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  1.393e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.658e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  2.404e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  4.369e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  9.035e-01  2.617e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  9.266e-01  5.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.163 6.879
Photon Flux Upper Limit: 2.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950931/likelihoodResults_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.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) = 2001.31641892
delta logL = -0.000107969573037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2001.31631304
delta logL = -2.08669302992e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6364       1.0000          .0000       5.0000    
     3 'Normalizat'    .92657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+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=   2001.316     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      275 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    489.28        .17501E-01** at limit **
   2  alpha         2.1990        3.3715        .50000        .70031E-08
   3  Normalizat    .92657        .34176E-01    .38032E-03   -.18675E-04
   4  Prefactor     .90348        .16996E-01    .18987E-03   -.14879E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.19904
  Normalizat = 0.926571
  Prefactor  = 0.903481
 **********
 **   18 **HESSE 
 **********

 FCN=   2001.316     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      302 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7205.8        .32204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1990        3.3446        .20000       -.12068    
   3  Normalizat    .92657        .12461        .15213E-04   -.95533    
   4  Prefactor     .90348        .61982E-01    .75948E-05   -.96020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1909e-10
Minuit parameter uncertainties:
  1  0.00341042
  2  6500.82
  3  0.124644
  4  0.0619865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950931': 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) = 2001.31631073
delta logL = 2.23323468163e-07

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  3.410e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.199e+00  6.501e+03  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  2.404e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  4.369e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  9.035e-01  6.199e-02  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  9.266e-01  1.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.163 6.879

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/950931/cmap_HighResolution_356227201_356486401_4FGL_J2148.6+0652_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-05', job_status='DONE', photon_flux_upper_limit='2.48e-07', time_completed='2021-09-27 16:31:36.177315', job_id='950931', GAL2='0.90', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632785496.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='451' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:31:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 950931: <4FGL_J2148.6+0652_daily_bin451> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin451> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 16:20:13 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:23:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 16:23:27 2021
Terminated at Mon Sep 27 16:31:37 2021
Results reported at Mon Sep 27 16:31:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin451 327.163 6.8791 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2148.6+0652 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   471.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   489 sec.
    Turnaround time :                            684 sec.

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

