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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin1751
RA = 327.163, Dec = 6.8791
tmin = 693187201, tmax = 693446401
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='87777', job_status='RUN', time_executed='2022-12-23 01:21:10.580367', time_epoch_executed='1671787270.58' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87777

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87777/ft1_4FGL_J2148.6+0652_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87777/ft1_4FGL_J2148.6+0652_daily_bin1751.fits outfile=/scratch/kocevski/87777/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin1751.fits ra=327.163 dec=6.8791 rad=12.0 tmin=693187201.0 tmax=693446401.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.61
user 3.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.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/87777/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/87777/ft1_filtered_4FGL_J2148.6+0652_daily_bin1751.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 726

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87777/ft1_filtered_4FGL_J2148.6+0652_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/87777/ltcube_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.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/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits
.....................!
real 11.98
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87777/ft1_filtered_4FGL_J2148.6+0652_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/87777/ltcube_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.fits outfile=/scratch/kocevski/87777/expmap_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.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/87777/ltcube_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.fits
.....................!
real 191.29
user 185.25
sys 5.71

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/87777/ft1_filtered_4FGL_J2148.6+0652_daily_bin1751.fits scfile=/scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits outfile=/scratch/kocevski/87777/cmap_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.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.58
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87777/ft1_filtered_4FGL_J2148.6+0652_daily_bin1751.fits scfile=/scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits outfile=/scratch/kocevski/87777/cmap_HighResolution_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87777/ft1_filtered_4FGL_J2148.6+0652_daily_bin1751.fits', '/scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits', expMap='/scratch/kocevski/87777/expmap_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.fits', expCube='/scratch/kocevski/87777/ltcube_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87777/Model_4FGL_J2148.6+0652_daily_bin1751.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/87777/ft1_filtered_4FGL_J2148.6+0652_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/87777/ft2_4FGL_J2148.6+0652_daily_bin1751.fits
Exposure map: /scratch/kocevski/87777/expmap_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.fits
Exposure cube: /scratch/kocevski/87777/ltcube_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87777/Model_4FGL_J2148.6+0652_daily_bin1751.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) = 7928.00015768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39829E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.0297       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22863E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .54319       1.0000          .0000       .10000E+07
     5 'Prefactor '    .76319E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22602E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .18378E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    18.779       1.0000          .0000       .10000E+07
     9 'norm      '    1.8525       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60804E-05   1.0000          .0000       .10000E+07
    11 'norm      '    4.6995       1.0000          .0000       .10000E+07
    12 'norm      '    .26627       1.0000          .0000       .10000E+07
    13 'Prefactor '    .55327E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12239E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .11753E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    25.712       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.1969       1.0000          .0000       .10000E+07
    18 'Prefactor '    .31375E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.5523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21468E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3613       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84542       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=   7927.988     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1763 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87430E-07    15.029       -.52517E-06** at limit **
   2  Prefactor     5.0292        3.0257        .15811E-07    .14801E-02
   3  Prefactor     .35451E-05    40.969       -.11615E-06** at limit **
   4  Prefactor     .59230E-01    1116.1       -.17437E-05** at limit **
   5  Prefactor     .99420E-07    18.796       -.41812E-06** at limit **
   6  Prefactor      .0000        2.0707       -.13247E-06** at limit **
   7  Prefactor      .0000        1.9838       -.10512E-06** at limit **
   8  Prefactor     18.453        3.0505        .15406E-07   -.11089E-01
   9  norm          1.8478        2.4451       -.48922E-07   -.10881E-02
  10  Prefactor     .92937E-06    34.766        .13183E-07** at limit **
  11  norm          4.7035        2.6215       -.49538E-07   -.16595E-02
  12  norm          .63876E-03    133.37        .15498E-06** at limit **
  13  Prefactor      .0000        7.4465        .99308E-08** at limit **
  14  Prefactor     .55511E-10    4.7557        .25261E-06** at limit **
  15  norm           .0000        .40071       -.53037E-07** at limit **
  16  Prefactor     25.642        8.3275       -.70570E-07   -.64909E-01
  17  Prefactor     5.1303        12.941       -.23982E-06   -.46093E-01
  18  Prefactor     .19601E-06    16.037       -.10431E-05** at limit **
  19  Prefactor     2.5520        .46407        .19807E-06    .59499E-03
  20  Prefactor     .10000E-03    4.3582       -.37054E-06** at limit **
  21  Normalizat    1.3631        .28216       -.13048E-05   -.10981E-03
  22  Prefactor     .84536        .13280       -.98244E-06   -.18354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.74301e-08
  Prefactor  = 5.0292
  Prefactor  = 3.54505e-06
  Prefactor  = 0.0592305
  Prefactor  = 9.94205e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 18.4528
  norm       = 1.84781
  Prefactor  = 9.29368e-07
  norm       = 4.70352
  norm       = 0.000638758
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 25.6418
  Prefactor  = 5.13028
  Prefactor  = 1.9601e-07
  Prefactor  = 2.552
  Prefactor  = 0.0001
  Normalizat = 1.36308
  Prefactor  = 0.845356
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.988     FROM HESSE     STATUS=OK           396 CALLS     2159 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87430E-07    15.225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0292        20.094        .44813E-03   -1.5663    
   3  Prefactor     .35451E-05    43.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59230E-01    20.741        .10946E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .99420E-07    19.122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.0732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.9678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.453        26.929        .23085E-03   -1.5622    
   9  norm          1.8478        2.4717        .76563E-03   -1.5681    
  10  Prefactor     .92937E-06    35.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7035        2.6631        .46395E-03   -1.5665    
  12  norm          .63876E-03    14.645        .12142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        7.4333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    4.7575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .39823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.642        21.960        .19725E-03   -1.5607    
  17  Prefactor     5.1303        18.599        .44072E-03   -1.5663    
  18  Prefactor     .19601E-06    16.223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5520        .46449        .56245E-02   -1.5388    
  20  Prefactor     .10000E-03    4.3418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3631        .23643        .74235E-01   -.81702    
  22  Prefactor     .84536        .11022        .44305E-01   -.98078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34697e-07
Minuit parameter uncertainties:
  1  0.00230741
  2  20.0945
  3  0.0247561
  4  2.21676
  5  0.00275774
  6  8.96428e-06
  7  9.36227e-06
  8  26.9291
  9  2.47169
  10  0.0115473
  11  2.6631
  12  0.193441
  13  9.38042e-06
  14  3.05467e-05
  15  1.49251e-06
  16  21.9604
  17  18.5995
  18  0.00356628
  19  0.464487
  20  2.71874e-06
  21  0.236623
  22  0.110248
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  6.388e-04  1.934e-01  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:  8.454e-01  1.102e-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.363e+00  2.366e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87777/likelihoodResults_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.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) = 7927.9905175
delta logL = -0.0023360235009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7927.84812566
delta logL = 0.140055818894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2082       1.0000          .0000       .10000E+07
     2 'alpha     '    1.2870       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83996       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.

 FCN=   7927.848     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      218 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2082        9.3374        .49100E-03    .26643E-01
   2  alpha         1.2871        1.0669        .50000       -.53795E-04
   3  Normalizat    1.3685        .22563        .74104E-01    .17490E-03
   4  Prefactor     .83995        .10923        .44235E-01    .30514E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.20819
  alpha      = 1.28706
  Normalizat = 1.3685
  Prefactor  = 0.839953
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.848     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2082        10.691        .19640E-04   -1.5667    
   2  alpha         1.2871        1.3282        .44290E-01   -.50657    
   3  Normalizat    1.3685        .27329        .32793E-03   -.81544    
   4  Prefactor     .83995        .13243        .19561E-03   -.98272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96767e-08
Minuit parameter uncertainties:
  1  10.6909
  2  1.42748
  3  0.273577
  4  0.132484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87777': 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) = 7927.84812563
delta logL = 0.140055845951

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  4.208e+00  1.069e+01  0.000e+00  1.000e+06 ( 1.000e-12)
296        alpha:  1.287e+00  1.427e+00  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:  8.400e-01  1.325e-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.368e+00  2.736e-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/87777/cmap_HighResolution_693187201_693446401_4FGL_J2148.6+0652_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2022-12-23 01:31:50.548457', job_id='87777', GAL2='0.84', fit_tolerance='1e-08', EG2='1.37', EG='1.36', time_epoch_completed='1671787910.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.40e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1751' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:31:50 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 87777: <4FGL_J2148.6+0652_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 01:20:16 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:20:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:20:16 2022
Terminated at Fri Dec 23 01:31:51 2022
Results reported at Fri Dec 23 01:31:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin1751 327.163 6.8791 693187201 693446401 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 :                                   642.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

