aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 97 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2148.6+0652_daily_bin1746
RA = 327.163, Dec = 6.8791
tmin = 691891201, tmax = 692150401
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='740541', job_status='RUN', time_executed='2022-12-08 01:47:13.161344', time_epoch_executed='1670492833.16' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740541/ft1_4FGL_J2148.6+0652_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740541/ft1_4FGL_J2148.6+0652_daily_bin1746.fits outfile=/scratch/kocevski/740541/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin1746.fits ra=327.163 dec=6.8791 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.71
user 4.48
sys 0.21

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

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

Number of photons that the gtmktime cut: 672

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740541/ft1_filtered_4FGL_J2148.6+0652_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/740541/ltcube_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.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/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740541/ft1_filtered_4FGL_J2148.6+0652_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/740541/ltcube_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.fits outfile=/scratch/kocevski/740541/expmap_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.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/740541/ltcube_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.fits
.....................!
real 191.37
user 185.67
sys 5.37

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/740541/ft1_filtered_4FGL_J2148.6+0652_daily_bin1746.fits scfile=/scratch/kocevski/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits outfile=/scratch/kocevski/740541/cmap_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740541/ft1_filtered_4FGL_J2148.6+0652_daily_bin1746.fits scfile=/scratch/kocevski/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits outfile=/scratch/kocevski/740541/cmap_HighResolution_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740541/ft1_filtered_4FGL_J2148.6+0652_daily_bin1746.fits', '/scratch/kocevski/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits', expMap='/scratch/kocevski/740541/expmap_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.fits', expCube='/scratch/kocevski/740541/ltcube_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740541/Model_4FGL_J2148.6+0652_daily_bin1746.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  0.000e+00  1.000e+06 ( 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 -5.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/740541/ft1_filtered_4FGL_J2148.6+0652_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/740541/ft2_4FGL_J2148.6+0652_daily_bin1746.fits
Exposure map: /scratch/kocevski/740541/expmap_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.fits
Exposure cube: /scratch/kocevski/740541/ltcube_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740541/Model_4FGL_J2148.6+0652_daily_bin1746.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) = 7206.95694841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59255E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11893E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .30755E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23543E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    48.567       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.4575       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29045E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    51.494       1.0000          .0000       .10000E+07
     9 'norm      '    2.8784       1.0000          .0000       .10000E+07
    10 'Prefactor '    .32584E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .66907E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .84524E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .68408E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .13374E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .80716       1.0000          .0000       .10000E+07
    16 'Prefactor '    .97596E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .24570E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .19350E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.7447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2186       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64909       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=   7206.743     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1765 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81607E-06    4.7341       -.66734E-07** at limit **
   2  Prefactor     .21982E-07    4.4500        .61792E-07** at limit **
   3  Prefactor      .0000        23.345        .11642E-06** at limit **
   4  Prefactor     .55356E-06    6.2072       -.58348E-06** at limit **
   5  Prefactor     48.887        4.0644        .11959E-08   -.41975E-01
   6  Prefactor     4.4589        4.5788       -.13915E-06   -.20635E-02
   7  Prefactor     .22204E-09    1.7296       -.10329E-06** at limit **
   8  Prefactor     52.082        25.712       -.27705E-07    .82457E-01
   9  norm          2.8796        2.1531        .31802E-07    .29085E-02
  10  Prefactor     .95146E-07    15.506       -.37629E-06** at limit **
  11  norm          .25535E-08    7.2856       -.20817E-06** at limit **
  12  norm          .21416E-06    3.7803       -.11375E-07** at limit **
  13  Prefactor     .33934E-06    2.2490        .39243E-07** at limit **
  14  Prefactor     .10973E-05    4.9604       -.20743E-06** at limit **
  15  norm          .80788        .98579       -.10992E-07    .48250E-03
  16  Prefactor     .19040E-07    58.600       -.33244E-07** at limit **
  17  Prefactor     .10819E-06    5.4584       -.53959E-06** at limit **
  18  Prefactor     .17153E-07    5.9998        .16670E-06** at limit **
  19  Prefactor     1.7451        .34473       -.10879E-06   -.98853E-03
  20  Prefactor     .10000E-03    2.6028       -.35203E-06** at limit **
  21  Normalizat    1.2177        .23121        .25047E-05    .16320E-03
  22  Prefactor     .64926        .11240       -.29127E-06    .21327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16069e-07
  Prefactor  = 2.19824e-08
  Prefactor  = 0
  Prefactor  = 5.53557e-07
  Prefactor  = 48.8868
  Prefactor  = 4.45892
  Prefactor  = 2.22045e-10
  Prefactor  = 52.0821
  norm       = 2.87957
  Prefactor  = 9.51461e-08
  norm       = 2.55351e-09
  norm       = 2.14162e-07
  Prefactor  = 3.3934e-07
  Prefactor  = 1.09729e-06
  norm       = 0.807885
  Prefactor  = 1.90403e-08
  Prefactor  = 1.08191e-07
  Prefactor  = 1.71529e-08
  Prefactor  = 1.74506
  Prefactor  = 0.0001
  Normalizat = 1.2177
  Prefactor  = 0.64926
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.743     FROM HESSE     STATUS=OK           382 CALLS     2147 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81607E-06    7.7821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .21982E-07    4.5456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        23.275        .16411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55356E-06    11.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     48.887        39.772        .14350E-03   -1.5568    
   6  Prefactor     4.4589        4.5914        .47669E-03   -1.5666    
   7  Prefactor     .22204E-09    1.7143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     52.082        29.073        .13936E-03   -1.5564    
   9  norm          2.8796        2.1663        .59882E-03   -1.5674    
  10  Prefactor     .95146E-07    15.733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25535E-08    .95876        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .21416E-06    5.3284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33934E-06    5.5699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10973E-05    8.5313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .80788        .99642        .52403E-03   -1.5690    
  16  Prefactor     .19040E-07    58.684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10819E-06    11.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17153E-07    6.4481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7451        .34497        .48501E-02   -1.5444    
  20  Prefactor     .10000E-03    2.6224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2177        .19541        .63186E-01   -.86058    
  22  Prefactor     .64926        .94109E-01    .41720E-01   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52182e-07
Minuit parameter uncertainties:
  1  0.00504006
  2  0.000632179
  3  3.47563e-05
  4  0.00501938
  5  39.7718
  6  4.59141
  7  3.77256e-05
  8  29.0734
  9  2.16628
  10  0.00244718
  11  9.86351e-05
  12  0.00213637
  13  0.00274954
  14  0.00611931
  15  0.996423
  16  0.00211316
  17  0.00219586
  18  0.000665651
  19  0.344974
  20  2.10668e-06
  21  0.19553
  22  0.0941316
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.142e-07  2.136e-03  0.000e+00  1.000e+06 ( 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 -5.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:  6.493e-01  9.413e-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.218e+00  1.955e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740541/likelihoodResults_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.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) = 7206.83286027
delta logL = -0.0902185098375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7206.74265161
delta logL = -9.84658527159e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30064E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .79440       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64922       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7206.693     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      271 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51303        1.7126         .0000       -.42589    
   2  alpha         5.0000        3.9663         .0000    ** at limit **
   3  Normalizat    1.1948        .19602         .0000       -.60850E-04
   4  Prefactor     .65657        .94599E-01     .0000       -.66183E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.513034
  alpha      = 5
  Normalizat = 1.19485
  Prefactor  = 0.656574
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.693     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51303        1.6823        .84235E-04   -1.5722    
   2  alpha         5.0000        3.6971        .13766        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1948        .23645        .28187E-03   -.86762    
   4  Prefactor     .65657        .11420        .18201E-03   -1.0525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65494e-09
Minuit parameter uncertainties:
  1  1.68226
  2  7.39283e-06
  3  0.23666
  4  0.114244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740541': 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) = 7206.69267749
delta logL = 0.0499642754157

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.130e-01  1.682e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        alpha:  5.000e+00  7.393e-06  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  2.404e-01  0.000e+00 -5.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:  6.566e-01  1.142e-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.195e+00  2.367e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/740541/cmap_HighResolution_691891201_692150401_4FGL_J2148.6+0652_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-05', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2022-12-08 01:57:38.453268', job_id='740541', GAL2='0.66', fit_tolerance='1e-08', EG2='1.19', EG='1.22', time_epoch_completed='1670493458.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='5.00e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1746' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:57:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 740541: <4FGL_J2148.6+0652_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin1746> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  8 01:45:23 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:45:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:45:24 2022
Terminated at Thu Dec  8 01:57:39 2022
Results reported at Thu Dec  8 01:57:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin1746 327.163 6.8791 691891201 692150401 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 :                                   627.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

