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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin161
RA = 327.163, Dec = 6.8791
tmin = 281059201, tmax = 281318401
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='948333', job_status='RUN', time_executed='2021-09-27 16:14:58.760724', time_epoch_executed='1632784498.76' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948333/ft1_4FGL_J2148.6+0652_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948333/ft2_4FGL_J2148.6+0652_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948333/ft1_4FGL_J2148.6+0652_daily_bin161.fits outfile=/scratch/kocevski/948333/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin161.fits ra=327.163 dec=6.8791 rad=12.0 tmin=281059201.0 tmax=281318401.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.72
user 3.45
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948333/ft1_filtered_4FGL_J2148.6+0652_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/948333/ft2_4FGL_J2148.6+0652_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/948333/ltcube_281059201_281318401_4FGL_J2148.6+0652_daily_bin161.fits outfile=/scratch/kocevski/948333/expmap_281059201_281318401_4FGL_J2148.6+0652_daily_bin161.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/948333/ltcube_281059201_281318401_4FGL_J2148.6+0652_daily_bin161.fits
.....................!
real 157.48
user 152.42
sys 4.43

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/948333/ft1_filtered_4FGL_J2148.6+0652_daily_bin161.fits scfile=/scratch/kocevski/948333/ft2_4FGL_J2148.6+0652_daily_bin161.fits outfile=/scratch/kocevski/948333/cmap_281059201_281318401_4FGL_J2148.6+0652_daily_bin161.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948333/ft1_filtered_4FGL_J2148.6+0652_daily_bin161.fits scfile=/scratch/kocevski/948333/ft2_4FGL_J2148.6+0652_daily_bin161.fits outfile=/scratch/kocevski/948333/cmap_HighResolution_281059201_281318401_4FGL_J2148.6+0652_daily_bin161.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.49
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.881       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.530       1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.464       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5727       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15472E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0297       1.0000         .10000E-03   10000.    
    16 'norm      '    50.941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7485       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3154       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    58.089       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.848       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .51069       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .55861       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1697       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8707.305     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3537 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.872        31.670       -.28028E-06   -.16968E-04
   2  Prefactor     21.532        21.508        .16483E-06    .18592E-04
   3  Prefactor     49.189        38.943       -.17722E-06   -.13236E-04
   4  Prefactor     .10000E-03    40.218       -.19208E-05** at limit **
   5  Prefactor     55.460        28.933       -.53401E-07   -.79238E-05
   6  Prefactor     6.6083        51.195        .15539E-05    .18625E-04
   7  Prefactor     6.4085        6.2554        .40085E-06    .15015E-03
   8  Prefactor     .10000E-03    4.8797        .75290E-07** at limit **
   9  Prefactor     .10000E-03    1.8672        .75036E-06** at limit **
  10  Prefactor     .10000E-03    30.889        .41799E-06** at limit **
  11  Prefactor     .10000E-03    15.620        .13265E-06** at limit **
  12  norm          3.3750        2.1824        .10339E-07   -.30391E-04
  13  Prefactor     .10000E-03    45.660        .13827E-05** at limit **
  14  Prefactor     .10000E-03    20.898        .29931E-06** at limit **
  15  norm          6.0295        3.3081        .31767E-07   -.79333E-04
  16  norm          50.941        26.258        .34017E-07   -.18460E-04
  17  Prefactor     3.7488        4.1158       -.11262E-05    .92413E-04
  18  Prefactor     .10000E-03    13.028       -.19181E-06** at limit **
  19  norm          4.3153        1.3509       -.68479E-08   -.18186E-04
  20  Prefactor     .10000E-03    5.8111       -.48834E-07** at limit **
  21  Prefactor     8.6571        16.192        .13954E-06   -.19171E-04
  22  Prefactor     .10000E-03    43.824       -.17452E-06** at limit **
  23  Prefactor     58.083        37.606       -.27255E-06   -.36143E-04
  24  Prefactor     15.841        18.681        .14001E-06    .27771E-04
  25  Prefactor     .51069        .25566       -.46055E-08   -.75805E-04
  26  Prefactor     .10000E-03    2.5713       -.10966E-07** at limit **
  27  Normalizat    .55886        .27776        .96718E-06   -.43874E-04
  28  Prefactor     1.1696        .12549       -.32148E-06   -.62490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8719
  Prefactor  = 21.5318
  Prefactor  = 49.1894
  Prefactor  = 0.000100001
  Prefactor  = 55.4603
  Prefactor  = 6.60827
  Prefactor  = 6.40847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.37499
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.02948
  norm       = 50.941
  Prefactor  = 3.74875
  Prefactor  = 0.0001
  norm       = 4.31525
  Prefactor  = 0.0001
  Prefactor  = 8.65714
  Prefactor  = 0.0001
  Prefactor  = 58.0826
  Prefactor  = 15.8407
  Prefactor  = 0.51069
  Prefactor  = 0.0001
  Normalizat = 0.558858
  Prefactor  = 1.16959
 **********
 **   18 **HESSE 
 **********

 FCN=   8707.305     FROM HESSE     STATUS=OK           529 CALLS     4066 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.872        31.619        .83738E-04   -1.4751    
   2  Prefactor     21.532        21.500        .86323E-04   -1.4780    
   3  Prefactor     49.189        39.030        .57174E-04   -1.4304    
   4  Prefactor     .10000E-03    41.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.460        28.868        .53862E-04   -1.4217    
   6  Prefactor     6.6083        51.325        .15653E-03   -1.5194    
   7  Prefactor     6.4085        6.2903        .15853E-03   -1.5202    
   8  Prefactor     .10000E-03    4.9191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8716        .24356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3750        2.1774        .10695E-03   -1.5341    
  13  Prefactor     .10000E-03    46.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    182.93        .81363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0295        3.2895        .11234E-03   -1.5217    
  16  norm          50.941        25.991        .56190E-04   -1.4279    
  17  Prefactor     3.7488        4.1798        .97808E-03   -1.5321    
  18  Prefactor     .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3153        1.3496        .58592E-04   -1.5292    
  20  Prefactor     .10000E-03    5.8142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.6571        16.078        .13623E-03   -1.5119    
  22  Prefactor     .10000E-03    44.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     58.083        37.432        .52638E-04   -1.4182    
  24  Prefactor     15.841        18.567        .10061E-03   -1.4912    
  25  Prefactor     .51069        .25337        .30719E-04   -1.5565    
  26  Prefactor     .10000E-03    2.5739        .14613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .55886        .28223        .48894E-03   -1.0976    
  28  Prefactor     1.1696        .13300        .17686E-03   -.87272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05881e-10
Minuit parameter uncertainties:
  1  31.6419
  2  21.5074
  3  39.0507
  4  0.000417274
  5  28.8752
  6  36.8768
  7  6.29098
  8  8.24105e-06
  9  1.39906e-05
  10  3.48952e-05
  11  6.43391e-06
  12  2.17749
  13  0.000305628
  14  0.000303975
  15  3.28964
  16  25.9967
  17  4.18015
  18  7.61718e-07
  19  1.34956
  20  4.45155e-07
  21  16.0857
  22  8.88734e-05
  23  37.4473
  24  18.5738
  25  0.253374
  26  1.92401e-07
  27  0.28296
  28  0.133041
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.094e+01  2.600e+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:  1.170e+00  1.330e-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:  5.589e-01  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.75
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 6.13e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.49e-05

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) = 8706.99660806
delta logL = 0.308055866528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8706.99278652
delta logL = 0.31187741328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.376       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0890       1.0000          .0000       5.0000    
     3 'Normalizat'    .52699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1810       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=   8706.993     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      299 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.379        25.840        .61582E-04   -.12295E-03
   2  alpha         3.0889        .58672        .15494E-01    .16496E-03
   3  Normalizat    .52715        .25991        .50248E-03   -.34933E-04
   4  Prefactor     1.1809        .13097        .17609E-03   -.21904E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 42.379
  alpha      = 3.08889
  Normalizat = 0.527149
  Prefactor  = 1.18093
 **********
 **   18 **HESSE 
 **********

 FCN=   8706.993     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.379        25.077        .24633E-05   -1.4405    
   2  alpha         3.0889        .56939        .30987E-02    .23779    
   3  Normalizat    .52715        .25992        .20099E-04   -1.1117    
   4  Prefactor     1.1809        .13094        .35218E-04   -.86920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99939e-11
Minuit parameter uncertainties:
  1  25.0834
  2  0.574736
  3  0.260516
  4  0.130977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948333': 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) = 8706.9927863
delta logL = 0.311877631437

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  4.238e+01  2.508e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.089e+00  5.747e-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:  1.181e+00  1.310e-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:  5.271e-01  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.51
Ra Dec: 327.163 6.879
Photon Index (Free Index): 3.09 +/- 0.57
Photon Flux (Free Index): 1.46e-07 +/- 7.19e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.36e-05

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/948333/cmap_HighResolution_281059201_281318401_4FGL_J2148.6+0652_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='2.93e-05', photon_flux_error='6.13e-08', dlogl='3.12e-01', energy_flux='2.92e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-27 16:26:55.178847', photon_index_error2='0.57', photon_index2='3.09', ts='6.75', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.56', time_epoch_completed='1632785215.18', return_code='0', job_id='948333', GAL2='1.18', EG2='0.53', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='7.19e-08', ts2='7.51', photon_index='2.66' WHERE bin_id='161' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:26:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 948333: <4FGL_J2148.6+0652_daily_bin161> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin161> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 16:10:23 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:12:32 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:12:32 2021
Terminated at Mon Sep 27 16:26:56 2021
Results reported at Mon Sep 27 16:26:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin161 327.163 6.8791 281059201 281318401 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 :                                   713.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            993 sec.

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

