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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin939
RA = 327.163, Dec = 6.8791
tmin = 482716801, tmax = 482976001
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='954553', job_status='RUN', time_executed='2021-09-27 16:38:01.411427', time_epoch_executed='1632785881.41' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954553/ft1_4FGL_J2148.6+0652_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954553/ft2_4FGL_J2148.6+0652_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954553/ft1_4FGL_J2148.6+0652_daily_bin939.fits outfile=/scratch/kocevski/954553/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin939.fits ra=327.163 dec=6.8791 rad=12.0 tmin=482716801.0 tmax=482976001.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 2.91
user 2.71
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954553/ft2_4FGL_J2148.6+0652_daily_bin939.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/954553/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin939.fits evtable="EVENTS" outfile="/scratch/kocevski/954553/ft1_filtered_4FGL_J2148.6+0652_daily_bin939.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/954553/ft1_filtered_4FGL_J2148.6+0652_daily_bin939.fits" evtable="EVENTS" scfile=/scratch/kocevski/954553/ft2_4FGL_J2148.6+0652_daily_bin939.fits sctable="SC_DATA" outfile=/scratch/kocevski/954553/ltcube_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.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/954553/ft2_4FGL_J2148.6+0652_daily_bin939.fits
.....................!
real 10.57
user 10.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954553/ft1_filtered_4FGL_J2148.6+0652_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/954553/ft2_4FGL_J2148.6+0652_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/954553/ltcube_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.fits outfile=/scratch/kocevski/954553/expmap_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.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/954553/ltcube_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.fits
.....................!
real 152.81
user 148.28
sys 4.23

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/954553/ft1_filtered_4FGL_J2148.6+0652_daily_bin939.fits scfile=/scratch/kocevski/954553/ft2_4FGL_J2148.6+0652_daily_bin939.fits outfile=/scratch/kocevski/954553/cmap_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954553/ft1_filtered_4FGL_J2148.6+0652_daily_bin939.fits scfile=/scratch/kocevski/954553/ft2_4FGL_J2148.6+0652_daily_bin939.fits outfile=/scratch/kocevski/954553/cmap_HighResolution_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.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/954553/ft1_filtered_4FGL_J2148.6+0652_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/954553/ft2_4FGL_J2148.6+0652_daily_bin939.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954553/Model_4FGL_J2148.6+0652_daily_bin939.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/954553/ft1_filtered_4FGL_J2148.6+0652_daily_bin939.fits.....................!
real 64.43
user 63.23
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3455       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.387       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29827E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    95.684       1.0000         .10000E-03   10000.    
    12 'norm      '    12.742       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28435       1.0000         .10000E-03   10000.    
    19 'norm      '    .22087       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.661       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.258       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.804       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4201       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91717       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=   8255.181     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3492 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3430        71.359       -.77993E-05   -.93161E-05
   2  Prefactor     11.430        26.608        .42497E-05    .17152E-04
   3  Prefactor     .10000E-03    21.401        .37580E-06** at limit **
   4  Prefactor     .10000E-03    27.531       -.35453E-06** at limit **
   5  Prefactor     11.009        18.488        .29669E-06    .90200E-05
   6  Prefactor     32.356        37.155        .86864E-07   -.78508E-05
   7  Prefactor     .10000E-03    2.6289        .60800E-07** at limit **
   8  Prefactor     .10000E-03    2.2337        .12130E-07** at limit **
   9  Prefactor     .10000E-03    .73423       -.35044E-06** at limit **
  10  Prefactor     .10004E-03    15.603       -.74758E-06** at limit **
  11  Prefactor     95.674        54.581       -.38515E-07   -.23414E-05
  12  norm          12.743        3.4936       -.56898E-07   -.14016E-03
  13  Prefactor     .10000E-03    25.687       -.10216E-06** at limit **
  14  Prefactor     .10000E-03    38.050        .13474E-06** at limit **
  15  norm          .10000E-03    .67917       -.55688E-08** at limit **
  16  norm          .10000E-03    11.341       -.90550E-08** at limit **
  17  Prefactor     .10000E-03    2.9569       -.78675E-08** at limit **
  18  Prefactor     .29187        5.2013       -.29936E-07   -.18573E-04
  19  norm          .22083        .59804        .35897E-06   -.83098E-04
  20  Prefactor     15.665        22.981       -.15288E-06    .13574E-05
  21  Prefactor     22.255        14.856       -.59823E-07    .19196E-04
  22  Prefactor     .10000E-03    6.1360        .23380E-08** at limit **
  23  Prefactor     .10000E-03    16.035       -.90355E-07** at limit **
  24  Prefactor     16.805        16.168       -.78659E-07   -.11602E-04
  25  Prefactor     3.4202        .52867       -.73282E-08   -.56711E-04
  26  Prefactor     .10000E-03    2.9120       -.53060E-09** at limit **
  27  Normalizat    1.0099        .22741        .60382E-06    .17313E-04
  28  Prefactor     .91716        .10737        .50458E-07    .70258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34296
  Prefactor  = 11.43
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.009
  Prefactor  = 32.3562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 95.6744
  norm       = 12.7431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.29187
  norm       = 0.22083
  Prefactor  = 15.6652
  Prefactor  = 22.2552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8046
  Prefactor  = 3.42017
  Prefactor  = 0.0001
  Normalizat = 1.00993
  Prefactor  = 0.91716
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.181     FROM HESSE     STATUS=OK           523 CALLS     4015 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3430        70.175        .26768E-03   -1.5402    
   2  Prefactor     11.430        26.495        .11821E-03   -1.5032    
   3  Prefactor     .10000E-03    21.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.009        18.496        .12073E-03   -1.5044    
   6  Prefactor     32.356        36.874        .70410E-04   -1.4570    
   7  Prefactor     .10000E-03    2.6587        .14376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2418        .13258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .73146        .75514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    105.73        .68291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     95.674        54.530        .41090E-04   -1.3749    
  12  norm          12.743        3.4923        .84833E-04   -1.4994    
  13  Prefactor     .10000E-03    25.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .68746        .73074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9706        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29187        50.457        .39329E-02   -1.5600    
  19  norm          .22083        .57335        .11064E-02   -1.5614    
  20  Prefactor     15.665        23.012        .10121E-03   -1.4916    
  21  Prefactor     22.255        14.836        .84901E-04   -1.4764    
  22  Prefactor     .10000E-03    6.1463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.805        16.284        .97705E-04   -1.4888    
  25  Prefactor     3.4202        .53322        .23874E-04   -1.5338    
  26  Prefactor     .10000E-03    2.9145        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0099        .27105        .35771E-03   -.92698    
  28  Prefactor     .91716        .13038        .18500E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3158e-08
Minuit parameter uncertainties:
  1  25.6776
  2  26.5225
  3  7.51711e-05
  4  8.70633e-05
  5  18.5058
  6  36.8996
  7  3.17485e-06
  8  1.3204e-06
  9  1.95744e-06
  10  0.00390727
  11  54.5582
  12  3.49236
  13  5.21853e-05
  14  6.94704e-05
  15  8.13673e-07
  16  5.40655e-06
  17  1.08408e-06
  18  7.68035
  19  0.573362
  20  23.0249
  21  14.8388
  22  1.31788e-06
  23  2.16685e-05
  24  16.2878
  25  0.533225
  26  1.61362e-07
  27  0.271419
  28  0.130427
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  5.407e-06  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:  9.172e-01  1.304e-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.010e+00  2.714e-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: 7.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954553/likelihoodResults_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.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) = 8255.18142988
delta logL = -0.000417894952989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8255.18101202
delta logL = -3.29600879923e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6550       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91719       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=   8255.181     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      244 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2112.1        .18142E-02** at limit **
   2  alpha         2.5752        3.2197        .16501        .22047E-08
   3  Normalizat    1.0099        .12055        .35771E-03    .73098E-05
   4  Prefactor     .91716        .60118E-01    .18500E-03    .14749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.57518
  Normalizat = 1.00993
  Prefactor  = 0.91716
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.181     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5752        3.6083        .66003E-02    .30075E-01
   3  Normalizat    1.0099        .25918        .14309E-04   -.92698    
   4  Prefactor     .91716        .12938        .74000E-05   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05172e-13
Minuit parameter uncertainties:
  1  1.4107e-05
  2  426.569
  3  0.259505
  4  0.129419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954553': 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) = 8255.18101197
delta logL = 1.87992554856e-08

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  1.411e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.575e+00  4.266e+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:  9.172e-01  1.294e-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.010e+00  2.595e-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/954553/cmap_HighResolution_482716801_482976001_4FGL_J2148.6+0652_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-09-27 16:50:53.560127', job_id='954553', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632786653.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='939' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 954553: <4FGL_J2148.6+0652_daily_bin939> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin939> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 16:35:14 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:35:55 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:35:55 2021
Terminated at Mon Sep 27 16:50:54 2021
Results reported at Mon Sep 27 16:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin939 327.163 6.8791 482716801 482976001 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 :                                   769.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            940 sec.

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

