/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 4 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 = 7684
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2148.6+0652_daily_bin316
RA = 327.163, Dec = 6.8791
tmin = 321235201, tmax = 321494401
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='949622', job_status='RUN', time_executed='2021-09-27 16:17:56.155884', time_epoch_executed='1632784676.16' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949622/ft1_4FGL_J2148.6+0652_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949622/ft2_4FGL_J2148.6+0652_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949622/ft1_4FGL_J2148.6+0652_daily_bin316.fits outfile=/scratch/kocevski/949622/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin316.fits ra=327.163 dec=6.8791 rad=12.0 tmin=321235201.0 tmax=321494401.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.56
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949622/ft2_4FGL_J2148.6+0652_daily_bin316.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/949622/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin316.fits evtable="EVENTS" outfile="/scratch/kocevski/949622/ft1_filtered_4FGL_J2148.6+0652_daily_bin316.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/949622/ft1_filtered_4FGL_J2148.6+0652_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/949622/ft2_4FGL_J2148.6+0652_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/949622/ltcube_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.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/949622/ft2_4FGL_J2148.6+0652_daily_bin316.fits
.....................!
real 13.86
user 13.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949622/ft1_filtered_4FGL_J2148.6+0652_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/949622/ft2_4FGL_J2148.6+0652_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/949622/ltcube_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.fits outfile=/scratch/kocevski/949622/expmap_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.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/949622/ltcube_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.fits
.....................!
real 193.01
user 187.83
sys 4.53

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/949622/ft1_filtered_4FGL_J2148.6+0652_daily_bin316.fits scfile=/scratch/kocevski/949622/ft2_4FGL_J2148.6+0652_daily_bin316.fits outfile=/scratch/kocevski/949622/cmap_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949622/ft1_filtered_4FGL_J2148.6+0652_daily_bin316.fits scfile=/scratch/kocevski/949622/ft2_4FGL_J2148.6+0652_daily_bin316.fits outfile=/scratch/kocevski/949622/cmap_HighResolution_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.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.55
user 0.38
sys 0.16

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5160.99765097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81123E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.450       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.104       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.9619       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .41657       1.0000         .10000E-03   10000.    
    16 'norm      '    21.538       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31193       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25117       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .58187       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84315       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=   5160.966     FROM MIGRAD    STATUS=CONVERGED   1272 CALLS     4620 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    53.019        .93405E-01** at limit **
   2  Prefactor     10.469        29.927        .12395E-03    .11631E-03
   3  Prefactor     .10000E-03    10.584        .18142E-02** at limit **
   4  Prefactor     .10000E-03    35.745        .18142E-02** at limit **
   5  Prefactor     23.113        24.189        .83334E-04   -.36971E-04
   6  Prefactor     .10000E-03    10.275        .18142E-02** at limit **
   7  Prefactor     .10000E-03    4.4042        .14589E-02** at limit **
   8  Prefactor     .10000E-03    5.7683        .16758E-02** at limit **
   9  Prefactor     .10000E-03    .93405        .67104E-03** at limit **
  10  Prefactor     23.031        33.474        .83445E-04    .49047E-05
  11  Prefactor     .10000E-03    37.342        .18142E-02** at limit **
  12  norm          7.9616        3.5385        .85178E-04    .52614E-03
  13  Prefactor     .10001E-03    99.526        .18142E-02** at limit **
  14  Prefactor     .10000E-03    51.547        .18142E-02** at limit **
  15  norm          .41598        3.4081        .18354E-02   -.12176E-02
  16  norm          21.561        21.991        .86306E-04   -.42800E-03
  17  Prefactor     .10000E-03    12.282        .36285E-03** at limit **
  18  Prefactor     .10000E-03    6.4466        .17790E-02** at limit **
  19  norm          .10000E-03    .55181        .90379E-03** at limit **
  20  Prefactor     .10000E-03    9.1494        .18142E-02** at limit **
  21  Prefactor     .40583        238.13        .59355E-02   -.30104E-04
  22  Prefactor     .10001E-03    46.070        .36285E-03** at limit **
  23  Prefactor     .10000E-03    14.739        .18142E-02** at limit **
  24  Prefactor     .24928        188.55        .42814E-02    .29536E-04
  25  Prefactor     .58189        .28691        .24766E-04    .18587E-02
  26  Prefactor     .10000E-03    2.9126        .11973E-02** at limit **
  27  Normalizat    1.0072        .30821        .31398E-03    .99536E-04
  28  Prefactor     .84320        .14451        .17101E-03    .48938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100142
  Prefactor  = 10.4695
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.1128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0307
  Prefactor  = 0.000100001
  norm       = 7.96162
  Prefactor  = 0.000100008
  Prefactor  = 0.000100003
  norm       = 0.415985
  norm       = 21.5611
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.405826
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.249275
  Prefactor  = 0.581895
  Prefactor  = 0.0001
  Normalizat = 1.00719
  Prefactor  = 0.843198
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.966     FROM HESSE     STATUS=OK           509 CALLS     5129 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    47.272        .98516E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.469        29.448        .49578E-05   -1.5061    
   3  Prefactor     .10000E-03    10.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.113        24.173        .33334E-05   -1.4746    
   6  Prefactor     .10000E-03    10.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4061        .29179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7702        .33516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .93415        .13421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.031        33.441        .33378E-05   -1.4748    
  11  Prefactor     .10000E-03    37.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.9616        3.5350        .34071E-05   -1.5144    
  13  Prefactor     .10001E-03    99.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    51.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .41598        3.3613        .73416E-04   -1.5579    
  16  norm          21.561        21.929        .17261E-04   -1.4779    
  17  Prefactor     .10000E-03    12.283        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4470        .35580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .55215        .18076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .40583        243.40        .23742E-02   -1.5581    
  22  Prefactor     .10001E-03    46.072        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .24928        185.48        .17126E-03   -1.5608    
  25  Prefactor     .58189        .28236        .49532E-05   -1.5555    
  26  Prefactor     .10000E-03    2.9126        .23945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0072        .30494        .12559E-04   -.92790    
  28  Prefactor     .84320        .14444        .34202E-04   -.98155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04719e-09
Minuit parameter uncertainties:
  1  0.00518499
  2  29.4884
  3  5.73037e-05
  4  0.000310769
  5  24.1832
  6  5.72965e-05
  7  7.67967e-05
  8  8.24532e-05
  9  8.53321e-06
  10  33.4687
  11  0.000291057
  12  3.53505
  13  0.00177267
  14  0.000802143
  15  2.36483
  16  21.9373
  17  0.000211186
  18  1.85353e-05
  19  9.61453e-06
  20  3.38589e-05
  21  19.9568
  22  0.0013685
  23  5.3389e-05
  24  13.6392
  25  0.282363
  26  4.18466e-06
  27  0.305471
  28  0.144507
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.156e+01  2.194e+01  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:  8.432e-01  1.445e-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:  1.007e+00  3.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/949622/likelihoodResults_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.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) = 5160.84395892
delta logL = 0.121673620418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5160.830893
delta logL = 0.134739540751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.058       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1177       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83312       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=   5160.831     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      279 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.053        26.337        .75633E-04    .22547E-05
   2  alpha         2.1181        .89790        .22254E-01   -.87563E-06
   3  Normalizat    1.0276        .28563        .31115E-03   -.59922E-05
   4  Prefactor     .83310        .14394        .17187E-03    .27119E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.0532
  alpha      = 2.11807
  Normalizat = 1.02757
  Prefactor  = 0.833104
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.831     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.053        26.195        .30253E-05   -1.4648    
   2  alpha         2.1181        .89304        .89015E-03   -.15337    
   3  Normalizat    1.0276        .28588        .12446E-04   -.92112    
   4  Prefactor     .83310        .14403        .68750E-05   -.98519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71032e-12
Minuit parameter uncertainties:
  1  26.2056
  2  0.913729
  3  0.28631
  4  0.144098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949622': 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) = 5160.83089284
delta logL = 0.134739694158

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.805e+01  2.621e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.118e+00  9.137e-01  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:  8.331e-01  1.441e-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:  1.028e+00  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.12 +/- 0.91
Photon Flux (Free Index): 4.51e-08 +/- 4.63e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.55e-05

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/949622/cmap_HighResolution_321235201_321494401_4FGL_J2148.6+0652_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='1.58e-05', photon_flux_error='5.17e-08', dlogl='1.35e-01', energy_flux='1.24e-05', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-09-27 16:30:56.221909', photon_index_error2='0.91', photon_index2='2.12', ts='1.48', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.55e-05', EG='1.01', time_epoch_completed='1632785456.22', return_code='0', job_id='949622', GAL2='0.83', EG2='1.03', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.63e-08', ts2='1.74', photon_index='2.66' WHERE bin_id='316' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 949622: <4FGL_J2148.6+0652_daily_bin316> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin316> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 16:15:16 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:17:43 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:17:43 2021
Terminated at Mon Sep 27 16:30:57 2021
Results reported at Mon Sep 27 16:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin316 327.163 6.8791 321235201 321494401 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            941 sec.

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

