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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin672
RA = 327.163, Dec = 6.8791
tmin = 413510401, tmax = 413769601
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='952340', job_status='RUN', time_executed='2021-09-27 16:30:36.597271', time_epoch_executed='1632785436.6' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952340/ft1_4FGL_J2148.6+0652_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952340/ft2_4FGL_J2148.6+0652_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952340/ft1_4FGL_J2148.6+0652_daily_bin672.fits outfile=/scratch/kocevski/952340/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin672.fits ra=327.163 dec=6.8791 rad=12.0 tmin=413510401.0 tmax=413769601.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.54
user 4.25
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952340/ft1_filtered_4FGL_J2148.6+0652_daily_bin672.fits" evtable="EVENTS" scfile=/scratch/kocevski/952340/ft2_4FGL_J2148.6+0652_daily_bin672.fits sctable="SC_DATA" outfile=/scratch/kocevski/952340/ltcube_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.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/952340/ft2_4FGL_J2148.6+0652_daily_bin672.fits
.....................!
real 11.26
user 10.94
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952340/ft1_filtered_4FGL_J2148.6+0652_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/952340/ft2_4FGL_J2148.6+0652_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/952340/ltcube_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.fits outfile=/scratch/kocevski/952340/expmap_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.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/952340/ltcube_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.fits
.....................!
real 156.81
user 152.33
sys 4.07

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/952340/ft1_filtered_4FGL_J2148.6+0652_daily_bin672.fits scfile=/scratch/kocevski/952340/ft2_4FGL_J2148.6+0652_daily_bin672.fits outfile=/scratch/kocevski/952340/cmap_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.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/952340/ft1_filtered_4FGL_J2148.6+0652_daily_bin672.fits scfile=/scratch/kocevski/952340/ft2_4FGL_J2148.6+0652_daily_bin672.fits outfile=/scratch/kocevski/952340/cmap_HighResolution_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.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.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.701       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0501       1.0000         .10000E-03   10000.    
    16 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.946       1.0000         .10000E-03   10000.    
    19 'norm      '    .13326E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13252E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16374E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.6654       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2082       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87619       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=   5423.314     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3588 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1515        .45270E-05** at limit **
   2  Prefactor     .10000E-03    6.1447       -.39579E-05** at limit **
   3  Prefactor     22.700        28.492        .31811E-05   -.23505E-04
   4  Prefactor     15.498        83.553        .26166E-03    .28830E-04
   5  Prefactor     17.969        24.615       -.32096E-05   -.10303E-03
   6  Prefactor     62.686        65.576       -.31225E-04   -.16560E-03
   7  Prefactor     .10000E-03    13.320       -.74851E-06** at limit **
   8  Prefactor     13.643        13.034        .26681E-05   -.16904E-03
   9  Prefactor     .10000E-03    3.2700        .12087E-05** at limit **
  10  Prefactor     .10000E-03    43.149       -.20286E-04** at limit **
  11  Prefactor     .10000E-03    49.163        .41158E-05** at limit **
  12  norm          6.2159        4.5223        .62753E-06   -.59141E-03
  13  Prefactor     .10000E-03    31.847        .35799E-05** at limit **
  14  Prefactor     .10000E-03    49.728        .66201E-05** at limit **
  15  norm          4.0490        2.9030        .69196E-06   -.39787E-03
  16  norm          .10000E-03    11.931        .36409E-05** at limit **
  17  Prefactor     5.7387        8.5322        .11408E-05   -.21361E-03
  18  Prefactor     16.936        16.344        .32764E-05   -.10654E-03
  19  norm          .10000E-03    1.0521        .86295E-06** at limit **
  20  Prefactor     .10000E-03    9.2642        .11665E-05** at limit **
  21  Prefactor     .10000E-03    11.464        .13130E-05** at limit **
  22  Prefactor     .10000E-03    31.346        .49910E-05** at limit **
  23  Prefactor     .10000E-03    10.484       -.43251E-05** at limit **
  24  Prefactor     .10131E-03    20.073        .52792E-05** at limit **
  25  Prefactor     1.6655        .63577        .22102E-06   -.50617E-02
  26  Prefactor     .10000E-03    19.721       -.54406E-06** at limit **
  27  Normalizat    1.2088        .30546       -.15333E-04   -.29257E-03
  28  Prefactor     .87604        .13175       -.20354E-05   -.83331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6996
  Prefactor  = 15.4979
  Prefactor  = 17.9688
  Prefactor  = 62.6861
  Prefactor  = 0.000100002
  Prefactor  = 13.6435
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.21586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.04904
  norm       = 0.0001
  Prefactor  = 5.73871
  Prefactor  = 16.9362
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000101309
  Prefactor  = 1.6655
  Prefactor  = 0.0001
  Normalizat = 1.20876
  Prefactor  = 0.876039
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.314     FROM HESSE     STATUS=OK           513 CALLS     4101 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1561        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1458        .17828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.700        28.503        .84070E-04   -1.4755    
   4  Prefactor     15.498        83.218        .10223E-03   -1.4920    
   5  Prefactor     17.969        24.643        .94512E-04   -1.4860    
   6  Prefactor     62.686        65.700        .50670E-04   -1.4123    
   7  Prefactor     .10000E-03    13.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.643        13.037        .10843E-03   -1.4969    
   9  Prefactor     .10000E-03    3.3485        .25710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2159        4.4961        .12621E-03   -1.5209    
  13  Prefactor     .10000E-03    31.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0490        2.9035        .10185E-03   -1.5305    
  16  norm          .10000E-03    11.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7387        8.5205        .16767E-03   -1.5229    
  18  Prefactor     16.936        16.360        .97293E-04   -1.4885    
  19  norm          .10000E-03    6.6263        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10131E-03    182.68        .61050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.6655        .61167        .33518E-04   -1.5450    
  26  Prefactor     .10000E-03    19.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2088        .36915        .34934E-03   -.86333    
  28  Prefactor     .87604        .16059        .18874E-03   -.96983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0046e-08
Minuit parameter uncertainties:
  1  1.78753e-05
  2  1.34156e-05
  3  28.5198
  4  71.981
  5  24.6568
  6  65.7757
  7  0.000295165
  8  13.0394
  9  0.000242932
  10  0.000211447
  11  0.000767671
  12  4.49639
  13  1.90391e-05
  14  0.000150436
  15  2.90362
  16  6.13115e-05
  17  8.52234
  18  16.3645
  19  0.000324653
  20  3.45783e-05
  21  5.29743e-05
  22  0.000317007
  23  2.52703e-05
  24  0.031022
  25  0.611673
  26  5.67367e-05
  27  0.369949
  28  0.160673
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  6.131e-05  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.760e-01  1.607e-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.209e+00  3.699e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952340/likelihoodResults_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.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) = 5423.31418722
delta logL = -0.000397646451347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5423.31378958
delta logL = -7.65885488363e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6573       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87605       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=   5423.314     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      232 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6339.9        .18142E-02** at limit **
   2  alpha         2.6466        3.5589        .16502        .60901E-07
   3  Normalizat    1.2088        .30427        .34935E-03    .48813E-06
   4  Prefactor     .87604        .14348        .18874E-03    .10842E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.64662
  Normalizat = 1.20875
  Prefactor  = 0.876042
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.314     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6466        2.7785        .66008E-02    .58681E-01
   3  Normalizat    1.2088        .33543        .13974E-04   -.86333    
   4  Prefactor     .87604        .15823        .75497E-05   -.96983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22886e-10
Minuit parameter uncertainties:
  1  0.000382649
  2  681.855
  3  0.336025
  4  0.158316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952340': 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) = 5423.31378957
delta logL = 5.6934368331e-10

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  3.826e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.647e+00  6.819e+02  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.760e-01  1.583e-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.209e+00  3.360e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/952340/cmap_HighResolution_413510401_413769601_4FGL_J2148.6+0652_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-27 16:40:29.747048', job_id='952340', GAL2='0.88', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632786029.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.69e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='672' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:40:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 952340: <4FGL_J2148.6+0652_daily_bin672> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 16:25:22 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:28:31 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:28:31 2021
Terminated at Mon Sep 27 16:40:30 2021
Results reported at Mon Sep 27 16:40:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin672 327.163 6.8791 413510401 413769601 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 :                                   589.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            908 sec.

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

