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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin506
RA = 327.163, Dec = 6.8791
tmin = 370483201, tmax = 370742401
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='951011', job_status='RUN', time_executed='2021-09-27 16:27:46.362131', time_epoch_executed='1632785266.36' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951011

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951011/ft1_4FGL_J2148.6+0652_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951011/ft1_4FGL_J2148.6+0652_daily_bin506.fits outfile=/scratch/kocevski/951011/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin506.fits ra=327.163 dec=6.8791 rad=12.0 tmin=370483201.0 tmax=370742401.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 20.23
user 19.52
sys 0.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.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/951011/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin506.fits evtable="EVENTS" outfile="/scratch/kocevski/951011/ft1_filtered_4FGL_J2148.6+0652_daily_bin506.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.54
user 0.38
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951011/ft1_filtered_4FGL_J2148.6+0652_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/951011/ltcube_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.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/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits
.....................!
real 12.50
user 12.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951011/ft1_filtered_4FGL_J2148.6+0652_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/951011/ltcube_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.fits outfile=/scratch/kocevski/951011/expmap_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.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/951011/ltcube_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.fits
.....................!
real 193.99
user 188.87
sys 3.96

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/951011/ft1_filtered_4FGL_J2148.6+0652_daily_bin506.fits scfile=/scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits outfile=/scratch/kocevski/951011/cmap_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.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
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951011/ft1_filtered_4FGL_J2148.6+0652_daily_bin506.fits scfile=/scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits outfile=/scratch/kocevski/951011/cmap_HighResolution_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.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
real 0.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/951011/ft1_filtered_4FGL_J2148.6+0652_daily_bin506.fits', '/scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits', expMap='/scratch/kocevski/951011/expmap_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.fits', expCube='/scratch/kocevski/951011/ltcube_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/951011/Model_4FGL_J2148.6+0652_daily_bin506.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/951011/ft1_filtered_4FGL_J2148.6+0652_daily_bin506.fits
Spacecraft file(s): /scratch/kocevski/951011/ft2_4FGL_J2148.6+0652_daily_bin506.fits
Exposure map: /scratch/kocevski/951011/expmap_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.fits
Exposure cube: /scratch/kocevski/951011/ltcube_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/951011/Model_4FGL_J2148.6+0652_daily_bin506.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 5555.61168255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 5552.36317884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56918E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44441E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10895E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36978E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0587       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1503       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7200       1.0000         .10000E-03   10000.    
    12 'norm      '    11.979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.133       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .58444E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.989       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5576       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.165       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12136E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.864       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6383       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.324       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97832       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5552.357     FROM MIGRAD    STATUS=CONVERGED    213 CALLS      529 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.667        .22918E-05** at limit **
   2  Prefactor     .10000E-03    192.62        .67471E-07** at limit **
   3  Prefactor     .10000E-03    25.465       -.21324E-06** at limit **
   4  Prefactor     7.6049        1.0022         .0000         .0000    
   5  Prefactor     .10000E-03    43.075       -.10146E-05** at limit **
   6  Prefactor     5.0587        1.0050         .0000         .0000    
   7  Prefactor     1.1735        22.616        .84888E-05   -.30003E-05
   8  Prefactor     .10000E-03    6.0827       -.25970E-06** at limit **
   9  Prefactor     .10000E-03    4.1803       -.58490E-06** at limit **
  10  Prefactor     .10244E-03    957.26       -.22096E-04** at limit **
  11  Prefactor     1.7200        1.0501         .0000         .0000    
  12  norm          11.981        3.9311        .42780E-06   -.17489E-04
  13  Prefactor     48.757        96.989        .68785E-06   -.10200E-02
  14  Prefactor     58.547        30.507        .35777E-06   -.37586E-02
  15  norm          .10000E-03    2.2432       -.30609E-07** at limit **
  16  norm          .10000E-03    90.884       -.89847E-05** at limit **
  17  Prefactor     .10000E-03    10.943        .93459E-06** at limit **
  18  Prefactor     19.820        39.617       -.28768E-05    .40724E-04
  19  norm          3.7220        1.3505       -.13985E-06    .15623E-04
  20  Prefactor     9.5626        15.741        .11619E-05    .12469E-04
  21  Prefactor     .10000E-03    14.572       -.47062E-06** at limit **
  22  Prefactor     89.782        66.182        .10958E-05    .37113E-03
  23  Prefactor     .10000E-03    14.025       -.50516E-06** at limit **
  24  Prefactor     13.884        12.776       -.78376E-06   -.42074E-05
  25  Prefactor     7.6380        .63243       -.32459E-08    .40878E-04
  26  Prefactor     21.342        12.365        .32009E-06   -.14565E-05
  27  Normalizat    .10000E-01    .68845       -.41597E-04** at limit **
  28  Prefactor     .97811        .95724E-01    .50540E-06   -.29396E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60491
  Prefactor  = 0.0001
  Prefactor  = 5.0587
  Prefactor  = 1.17354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102445
  Prefactor  = 1.71995
  norm       = 11.9806
  Prefactor  = 48.7575
  Prefactor  = 58.5467
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8202
  norm       = 3.72204
  Prefactor  = 9.56261
  Prefactor  = 0.0001
  Prefactor  = 89.7823
  Prefactor  = 0.0001
  Prefactor  = 13.8837
  Prefactor  = 7.63801
  Prefactor  = 21.3424
  Normalizat = 0.01
  Prefactor  = 0.978108
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5552.357     FROM HESSE     STATUS=FAILED        23 CALLS      552 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.708        .93038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    191.12        .92429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.545        .10353E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     508.34        500.70         .0000       -1.5156    
   5  Prefactor     .10000E-03    .21189       -.10146E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0587        1.0050         .0000       -1.5258    
   7  Prefactor     1.1735        1.1558        .84888E-05   -1.5491    
   8  Prefactor     .10000E-03    .20571       -.25970E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20571       -.58490E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10244E-03    .35162E-01   -.22096E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7200        1.0501         .0000       -1.5446    
  12  norm          11.981        1.0009        .42780E-06   -1.5016    
  13  Prefactor     48.757        1.0165        .68785E-06   -1.4310    
  14  Prefactor     58.547        1.0036        .35777E-06   -1.4176    
  15  norm          .10000E-03    .20571       -.30609E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .21674       -.89847E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571        .93459E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.820        .99608       -.28768E-05   -1.4817    
  19  norm          3.7220        1.0094       -.13985E-06   -1.5322    
  20  Prefactor     9.5626        1.0016        .11619E-05   -1.5089    
  21  Prefactor     .10000E-03    .20571       -.47062E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     89.782        1.0034        .10958E-05   -1.3810    
  23  Prefactor     .10000E-03    .20571       -.50516E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.884        1.0014       -.78376E-06   -1.4963    
  25  Prefactor     7.6380        1.0021       -.32459E-08   -1.5155    
  26  Prefactor     21.342        1.0007        .32009E-06   -1.4784    
  27  Normalizat    .10000E-01    .25505       -.41597E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .97811        1.3187        .50540E-06   -.93463    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.56182e-11
Minuit parameter uncertainties:
  1  1.56958e-05
  2  0.000361
  3  1.21016e-06
  4  1.00218
  5  1.18314e-06
  6  1.00497
  7  1.15583
  8  3.8835e-08
  9  1.24453e-07
  10  0.000586392
  11  1.05013
  12  1.00095
  13  1.01648
  14  1.00357
  15  2.71688e-08
  16  1.73084e-06
  17  5.45813e-07
  18  0.996086
  19  1.00936
  20  1.00164
  21  1.55076e-07
  22  1.00344
  23  3.91288e-08
  24  1.00135
  25  1.00214
  26  1.00071
  27  4.28879e-07
  28  1.36634
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 5552.35746892

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  1.731e-06  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.781e-01  1.366e+00  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:  1.000e-02  4.289e-07  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.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951011/likelihoodResults_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.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) = 5552.35752784
delta logL = -5.89264509472e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5552.35746906
delta logL = -1.42564203998e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4522       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97811       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=   5552.357     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      292 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6227.1        .18142E-01** at limit **
   2  alpha         2.7691        3.6067        .18304       -.27328E-08
   3  Normalizat    .10000E-01    .44869E-01    .15264E-01** at limit **
   4  Prefactor     .97811        .20779E-01    .19962E-03    .16402E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.76912
  Normalizat = 0.01
  Prefactor  = 0.978108
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.357     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    92.081        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7691        3.7796        .73216E-02    .10786    
   3  Normalizat    .10000E-01    .68947        .30528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97811        .81485E-01    .79847E-05   -.93463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06781e-12
Minuit parameter uncertainties:
  1  0.000139613
  2  1098.37
  3  2.87763e-07
  4  0.0814955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951011': 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) = 5552.35746891
delta logL = 5.58520696359e-09

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  1.396e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.769e+00  1.098e+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.781e-01  8.150e-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:  1.000e-02  2.878e-07  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/951011/cmap_HighResolution_370483201_370742401_4FGL_J2148.6+0652_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-05', job_status='DONE', photon_flux_upper_limit='2.24e-07', time_completed='2021-09-27 16:36:33.216999', job_id='951011', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632785793.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.98', dlogl='5.59e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='506' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:36:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 951011: <4FGL_J2148.6+0652_daily_bin506> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin506> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 16:20:19 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:25:04 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:25:04 2021
Terminated at Mon Sep 27 16:36:33 2021
Results reported at Mon Sep 27 16:36:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin506 327.163 6.8791 370483201 370742401 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 :                                   519.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            974 sec.

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

