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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin725
RA = 327.163, Dec = 6.8791
tmin = 427248001, tmax = 427507201
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='953191', job_status='RUN', time_executed='2021-09-27 16:34:24.717462', time_epoch_executed='1632785664.72' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953191

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953191/ft1_4FGL_J2148.6+0652_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953191/ft2_4FGL_J2148.6+0652_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953191/ft1_4FGL_J2148.6+0652_daily_bin725.fits outfile=/scratch/kocevski/953191/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin725.fits ra=327.163 dec=6.8791 rad=12.0 tmin=427248001.0 tmax=427507201.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 5.56
user 5.24
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953191/ft2_4FGL_J2148.6+0652_daily_bin725.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/953191/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin725.fits evtable="EVENTS" outfile="/scratch/kocevski/953191/ft1_filtered_4FGL_J2148.6+0652_daily_bin725.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.51
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953191/ft1_filtered_4FGL_J2148.6+0652_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/953191/ft2_4FGL_J2148.6+0652_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/953191/ltcube_427248001_427507201_4FGL_J2148.6+0652_daily_bin725.fits outfile=/scratch/kocevski/953191/expmap_427248001_427507201_4FGL_J2148.6+0652_daily_bin725.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/953191/ltcube_427248001_427507201_4FGL_J2148.6+0652_daily_bin725.fits
.....................!
real 190.67
user 185.40
sys 4.40

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/953191/ft1_filtered_4FGL_J2148.6+0652_daily_bin725.fits scfile=/scratch/kocevski/953191/ft2_4FGL_J2148.6+0652_daily_bin725.fits outfile=/scratch/kocevski/953191/cmap_427248001_427507201_4FGL_J2148.6+0652_daily_bin725.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953191/ft1_filtered_4FGL_J2148.6+0652_daily_bin725.fits scfile=/scratch/kocevski/953191/ft2_4FGL_J2148.6+0652_daily_bin725.fits outfile=/scratch/kocevski/953191/cmap_HighResolution_427248001_427507201_4FGL_J2148.6+0652_daily_bin725.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64645       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5022       1.0000         .10000E-03   10000.    
    10 'Prefactor '    81.039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.650       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.222       1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .28207E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.317       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17823E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9707       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.206       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84926       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77066       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=   4763.892     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3514 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5570        .18196E-06** at limit **
   2  Prefactor     .10000E-03    13.942        .48691E-06** at limit **
   3  Prefactor     .10000E-03    17.508        .52228E-06** at limit **
   4  Prefactor     21.279        48.022        .24512E-05   -.22900E-03
   5  Prefactor     .10000E-03    19.796       -.96759E-07** at limit **
   6  Prefactor     22.934        42.621       -.63418E-06   -.15749E-03
   7  Prefactor     .64776        10.034        .22769E-04    .76560E-04
   8  Prefactor     .10000E-03    4.4911        .43308E-06** at limit **
   9  Prefactor     1.5013        2.8698        .40304E-06   -.13708E-03
  10  Prefactor     81.046        43.525        .13412E-06   -.20535E-03
  11  Prefactor     .10000E-03    21.064        .22449E-06** at limit **
  12  norm          16.652        5.5382       -.17071E-06   -.10947E-02
  13  Prefactor     .10000E-03    32.879        .34265E-06** at limit **
  14  Prefactor     51.221        64.035        .17782E-05    .22238E-04
  15  norm          .10000E-03    1.9882        .76179E-06** at limit **
  16  norm          .10001E-03    39.509        .14021E-05** at limit **
  17  Prefactor     .10000E-03    9.0825        .26834E-07** at limit **
  18  Prefactor     .10000E-03    13.391        .21660E-06** at limit **
  19  norm          .10012E-03    1.2986        .42062E-05** at limit **
  20  Prefactor     .10000E-03    13.220       -.76603E-07** at limit **
  21  Prefactor     29.311        27.670       -.10100E-05   -.64236E-03
  22  Prefactor     .10000E-03    29.289       -.86331E-06** at limit **
  23  Prefactor     9.9583        31.479        .11068E-05   -.57028E-04
  24  Prefactor     .10004E-03    79.436        .45977E-05** at limit **
  25  Prefactor     .10000E-03    .26818        .20934E-06** at limit **
  26  Prefactor     25.176        21.421        .55058E-07   -.16503E-03
  27  Normalizat    .84928        .26211       -.66898E-05   -.37316E-03
  28  Prefactor     .77062        .11655        .86938E-06   -.60903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.2788
  Prefactor  = 0.0001
  Prefactor  = 22.9342
  Prefactor  = 0.647762
  Prefactor  = 0.0001
  Prefactor  = 1.50125
  Prefactor  = 81.0462
  Prefactor  = 0.0001
  norm       = 16.6521
  Prefactor  = 0.0001
  Prefactor  = 51.2209
  norm       = 0.000100001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100117
  Prefactor  = 0.0001
  Prefactor  = 29.3109
  Prefactor  = 0.000100003
  Prefactor  = 9.95829
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 25.176
  Normalizat = 0.849281
  Prefactor  = 0.770624
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.892     FROM HESSE     STATUS=OK           503 CALLS     4017 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5633        .17262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.279        48.164        .86680E-04   -1.4785    
   5  Prefactor     .10000E-03    19.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.934        41.827        .83649E-04   -1.4750    
   7  Prefactor     .64776        10.319        .20462E-02   -1.5547    
   8  Prefactor     .10000E-03    4.5148        .14286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5013        2.7683        .13204E-03   -1.5463    
  10  Prefactor     81.046        43.386        .44616E-04   -1.3905    
  11  Prefactor     .10000E-03    21.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.652        5.5256        .89279E-04   -1.4892    
  13  Prefactor     .10000E-03    32.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.221        63.947        .56036E-04   -1.4275    
  15  norm          .10000E-03    2.0454        .19012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    39.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10012E-03    13.246        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.311        27.733        .73995E-04   -1.4625    
  22  Prefactor     .10000E-03    29.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9583        31.487        .12690E-03   -1.5077    
  24  Prefactor     .10004E-03    81.941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.7100        .67731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     25.176        20.981        .79789E-04   -1.4704    
  27  Normalizat    .84928        .31010        .33617E-03   -.98266    
  28  Prefactor     .77062        .13952        .16707E-03   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18814e-08
Minuit parameter uncertainties:
  1  3.71245e-05
  2  9.4568e-05
  3  0.000216338
  4  48.2523
  5  3.34987e-05
  6  41.8805
  7  5.17132
  8  6.91405e-05
  9  2.76853
  10  43.4034
  11  0.00013266
  12  5.52578
  13  1.12166e-06
  14  64.0333
  15  8.47792e-05
  16  0.00098676
  17  8.32509e-06
  18  3.61969e-05
  19  0.00249547
  20  3.71654e-05
  21  27.7449
  22  0.000572352
  23  31.539
  24  0.00354053
  25  2.37104e-06
  26  20.9874
  27  0.310746
  28  0.139588
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  9.868e-04  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:  7.706e-01  1.396e-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:  8.493e-01  3.107e-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.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953191/likelihoodResults_427248001_427507201_4FGL_J2148.6+0652_daily_bin725.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) = 4763.89198128
delta logL = -0.000119408702631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.89186222
delta logL = -3.47759851138e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10682E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6311       1.0000          .0000       5.0000    
     3 'Normalizat'    .84939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77061       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=   4763.892     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      193 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    56.877        .90712E-02** at limit **
   2  alpha         2.6791        3.7094        .41223       -.70495E-05
   3  Normalizat    .84928        .24124        .75951E-01   -.19207E-03
   4  Prefactor     .77063        .11556        .43334E-01   -.14222E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.67909
  Normalizat = 0.84928
  Prefactor  = 0.770625
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.892     FROM HESSE     STATUS=OK            29 CALLS      222 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    41.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6791        3.5917        .16489        .71697E-01
   3  Normalizat    .84928        .28678        .33617E-03   -.98266    
   4  Prefactor     .77063        .13770        .16707E-03   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02917e-10
Minuit parameter uncertainties:
  1  0.000262036
  2  2.49831
  3  0.287299
  4  0.137758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953191': 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) = 4763.89186181
delta logL = 5.96573954681e-08

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  2.620e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.679e+00  2.498e+00  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:  7.706e-01  1.378e-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:  8.493e-01  2.873e-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/953191/cmap_HighResolution_427248001_427507201_4FGL_J2148.6+0652_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-27 16:45:32.122831', job_id='953191', GAL2='0.77', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632786332.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='5.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='725' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:45:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 953191: <4FGL_J2148.6+0652_daily_bin725> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin725 327.163 6.8791 427248001 427507201 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 :                                   665.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            917 sec.

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

