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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin753
RA = 327.163, Dec = 6.8791
tmin = 434505601, tmax = 434764801
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='953234', job_status='RUN', time_executed='2021-09-27 16:34:13.900106', time_epoch_executed='1632785653.9' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953234

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953234/ft1_4FGL_J2148.6+0652_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953234/ft2_4FGL_J2148.6+0652_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953234/ft1_4FGL_J2148.6+0652_daily_bin753.fits outfile=/scratch/kocevski/953234/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin753.fits ra=327.163 dec=6.8791 rad=12.0 tmin=434505601.0 tmax=434764801.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.99
user 5.67
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953234/ft2_4FGL_J2148.6+0652_daily_bin753.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/953234/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/953234/ft1_filtered_4FGL_J2148.6+0652_daily_bin753.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953234/ft1_filtered_4FGL_J2148.6+0652_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/953234/ft2_4FGL_J2148.6+0652_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/953234/ltcube_434505601_434764801_4FGL_J2148.6+0652_daily_bin753.fits outfile=/scratch/kocevski/953234/expmap_434505601_434764801_4FGL_J2148.6+0652_daily_bin753.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/953234/ltcube_434505601_434764801_4FGL_J2148.6+0652_daily_bin753.fits
.....................!
real 191.50
user 185.69
sys 5.11

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/953234/ft1_filtered_4FGL_J2148.6+0652_daily_bin753.fits scfile=/scratch/kocevski/953234/ft2_4FGL_J2148.6+0652_daily_bin753.fits outfile=/scratch/kocevski/953234/cmap_434505601_434764801_4FGL_J2148.6+0652_daily_bin753.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953234/ft1_filtered_4FGL_J2148.6+0652_daily_bin753.fits scfile=/scratch/kocevski/953234/ft2_4FGL_J2148.6+0652_daily_bin753.fits outfile=/scratch/kocevski/953234/cmap_HighResolution_434505601_434764801_4FGL_J2148.6+0652_daily_bin753.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35188E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.410       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    206.91       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.7132       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .48687E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9971       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .65412       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    55.595       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8770       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .58532       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=   3675.637     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3546 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.073        31.506       -.40840E-05    .56346E-04
   2  Prefactor     .10044E-03    31.419        .22224E-07** at limit **
   3  Prefactor     .10000E-03    19.826       -.35463E-06** at limit **
   4  Prefactor     .10000E-03    22.148        .36635E-06** at limit **
   5  Prefactor     .10000E-03    13.686       -.44462E-06** at limit **
   6  Prefactor     .10000E-03    31.334        .18683E-07** at limit **
   7  Prefactor     34.966        12.006       -.15036E-06    .58464E-05
   8  Prefactor     .10000E-03    13.556        .55159E-06** at limit **
   9  Prefactor     .10000E-03    1.1376       -.10822E-07** at limit **
  10  Prefactor     .10000E-03    12.357       -.17536E-07** at limit **
  11  Prefactor     .10000E-03    26.930       -.18228E-06** at limit **
  12  norm          14.406        5.7369       -.77329E-07    .91696E-05
  13  Prefactor     .10000E-03    68.101        .27426E-06** at limit **
  14  Prefactor     206.85        108.65       -.22605E-05   -.90902E-04
  15  norm          .10000E-03    4.2972        .14621E-06** at limit **
  16  norm          9.7121        46.088        .47170E-06    .92148E-05
  17  Prefactor     .10000E-03    5.2579       -.32923E-06** at limit **
  18  Prefactor     .10000E-03    11.531       -.14702E-06** at limit **
  19  norm          .10000E-03    1.4933       -.75802E-07** at limit **
  20  Prefactor     .10000E-03    18.920        .12031E-06** at limit **
  21  Prefactor     9.0899        29.256        .28778E-05    .13936E-03
  22  Prefactor     .34336        67.321       -.55278E-05    .11165E-03
  23  Prefactor     .10000E-03    111.84        .19638E-05** at limit **
  24  Prefactor     55.585        42.647       -.10520E-05   -.45698E-04
  25  Prefactor     1.8769        .81178        .26900E-07    .25268E-04
  26  Prefactor     13.864        16.164       -.16206E-07    .78981E-05
  27  Normalizat    1.0297        .34017        .49585E-05    .13618E-03
  28  Prefactor     .58559        .13820       -.15528E-05    .40147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0733
  Prefactor  = 0.000100441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4061
  Prefactor  = 0.0001
  Prefactor  = 206.854
  norm       = 0.0001
  norm       = 9.71208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.08988
  Prefactor  = 0.343364
  Prefactor  = 0.000100001
  Prefactor  = 55.5849
  Prefactor  = 1.87687
  Prefactor  = 13.8643
  Normalizat = 1.02973
  Prefactor  = 0.585589
 **********
 **   18 **HESSE 
 **********

 FCN=   3675.637     FROM HESSE     STATUS=OK           523 CALLS     4069 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.073        29.864        .99858E-04   -1.4906    
   2  Prefactor     .10044E-03    120.46        .58359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.966        12.017        .67770E-04   -1.4525    
   8  Prefactor     .10000E-03    13.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1458        .63142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.406        5.7120        .87013E-04   -1.4949    
  13  Prefactor     .10000E-03    68.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     206.85        108.75        .14050E-03   -1.2821    
  15  norm          .10000E-03    4.4472        .24373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7121        45.534        .12858E-03   -1.5085    
  17  Prefactor     .10000E-03    5.2488        .13556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.9785        .14143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0899        31.627        .13362E-03   -1.5105    
  22  Prefactor     .34336        90.791        .10106       -1.5591    
  23  Prefactor     .10000E-03    112.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     55.585        43.097        .53799E-04   -1.4215    
  25  Prefactor     1.8769        .82100        .31629E-04   -1.5434    
  26  Prefactor     13.864        16.186        .10757E-03   -1.4963    
  27  Normalizat    1.0297        .38922        .32442E-03   -.92041    
  28  Prefactor     .58559        .16061        .18766E-03   -1.0820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87161e-09
Minuit parameter uncertainties:
  1  29.8916
  2  0.0146088
  3  6.41396e-05
  4  5.36513e-05
  5  5.5273e-05
  6  2.93121e-05
  7  12.0173
  8  3.90644e-05
  9  2.535e-06
  10  2.60764e-06
  11  4.45667e-05
  12  5.71218
  13  5.18467e-05
  14  108.86
  15  1.78865e-05
  16  42.1107
  17  1.07936e-05
  18  5.10291e-06
  19  8.10561e-05
  20  3.27052e-05
  21  31.6854
  22  11.1823
  23  0.000527829
  24  43.1213
  25  0.821003
  26  16.1911
  27  0.390305
  28  0.160736
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  9.712e+00  4.211e+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:  5.856e-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.030e+00  3.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 327.163 6.879
Photon Flux Upper Limit: 2.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953234/likelihoodResults_434505601_434764801_4FGL_J2148.6+0652_daily_bin753.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) = 3675.47115083
delta logL = 0.165750876758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3675.46739483
delta logL = 0.169506879776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6725       1.0000         .10000E-03   10000.    
     2 'alpha     '    .94895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57501       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=   3675.467     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 21.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6802        27.190        .13680E-04   -.39817E-03
   2  alpha         .94838        1.4968        .18453E-03    .29019E-04
   3  Normalizat    1.0524        .28993        .21224E-06   -.63084E-04
   4  Prefactor     .57480        .13070       -.59942E-06   -.17850E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.68016
  alpha      = 0.948378
  Normalizat = 1.05245
  Prefactor  = 0.574802
 **********
 **   18 **HESSE 
 **********

 FCN=   3675.467     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6802        23.242        .13611E-03   -1.5119    
   2  alpha         .94838        1.3206        .28237E-01   -.66957    
   3  Normalizat    1.0524        .34519        .32131E-03   -.91294    
   4  Prefactor     .57480        .15565        .18919E-03   -1.0866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03832e-10
Minuit parameter uncertainties:
  1  23.266
  2  1.44894
  3  0.34593
  4  0.155771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953234': 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) = 3675.46739334
delta logL = 0.169508368867

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  8.680e+00  2.327e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  9.484e-01  1.449e+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:  5.748e-01  1.558e-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.052e+00  3.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/953234/cmap_HighResolution_434505601_434764801_4FGL_J2148.6+0652_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', job_status='DONE', photon_flux_upper_limit='2.37e-07', time_completed='2021-09-27 16:44:06.073467', job_id='953234', GAL2='0.57', fit_tolerance='1e-08', EG2='1.05', EG='1.03', time_epoch_completed='1632786246.07', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='1.70e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='753' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:44:06 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin753 327.163 6.8791 434505601 434764801 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 :                                   590.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            827 sec.

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

