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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin599
RA = 327.163, Dec = 6.8791
tmin = 394588801, tmax = 394848001
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='952228', job_status='RUN', time_executed='2021-09-27 16:31:11.154837', time_epoch_executed='1632785471.15' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952228/ft1_4FGL_J2148.6+0652_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952228/ft2_4FGL_J2148.6+0652_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952228/ft1_4FGL_J2148.6+0652_daily_bin599.fits outfile=/scratch/kocevski/952228/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin599.fits ra=327.163 dec=6.8791 rad=12.0 tmin=394588801.0 tmax=394848001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.79
user 3.56
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952228/ft1_filtered_4FGL_J2148.6+0652_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/952228/ft2_4FGL_J2148.6+0652_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/952228/ltcube_394588801_394848001_4FGL_J2148.6+0652_daily_bin599.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/952228/ft2_4FGL_J2148.6+0652_daily_bin599.fits
.....................!
real 11.34
user 11.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952228/ft1_filtered_4FGL_J2148.6+0652_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/952228/ft2_4FGL_J2148.6+0652_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/952228/ltcube_394588801_394848001_4FGL_J2148.6+0652_daily_bin599.fits outfile=/scratch/kocevski/952228/expmap_394588801_394848001_4FGL_J2148.6+0652_daily_bin599.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/952228/ltcube_394588801_394848001_4FGL_J2148.6+0652_daily_bin599.fits
.....................!
real 155.04
user 150.01
sys 4.70

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/952228/ft1_filtered_4FGL_J2148.6+0652_daily_bin599.fits scfile=/scratch/kocevski/952228/ft2_4FGL_J2148.6+0652_daily_bin599.fits outfile=/scratch/kocevski/952228/cmap_394588801_394848001_4FGL_J2148.6+0652_daily_bin599.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/952228/ft1_filtered_4FGL_J2148.6+0652_daily_bin599.fits scfile=/scratch/kocevski/952228/ft2_4FGL_J2148.6+0652_daily_bin599.fits outfile=/scratch/kocevski/952228/cmap_HighResolution_394588801_394848001_4FGL_J2148.6+0652_daily_bin599.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/952228/ft1_filtered_4FGL_J2148.6+0652_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/952228/ft2_4FGL_J2148.6+0652_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952228/Model_4FGL_J2148.6+0652_daily_bin599.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/952228/ft1_filtered_4FGL_J2148.6+0652_daily_bin599.fits.....................!
real 52.65
user 51.36
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.542       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5597       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0214       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4464       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    303.57       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10635E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    38.985       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.276       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.020       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.340       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.742       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .98820       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .61175       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94972       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=   6580.989     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3588 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.545        25.317        .46614E-05   -.58660E-04
   2  Prefactor     .10000E-03    11.268       -.19079E-05** at limit **
   3  Prefactor     2.5546        76.006       -.20404E-04   -.94976E-05
   4  Prefactor     .10000E-03    10.743       -.38355E-05** at limit **
   5  Prefactor     4.0212        24.812       -.17320E-05   -.80749E-04
   6  Prefactor     .10001E-03    30.483       -.27489E-04** at limit **
   7  Prefactor     .10000E-03    4.8586        .19036E-05** at limit **
   8  Prefactor     .10000E-03    3.2971       -.11406E-07** at limit **
   9  Prefactor     .10000E-03    .77881       -.42446E-07** at limit **
  10  Prefactor     51.479        36.947       -.29722E-05    .36288E-04
  11  Prefactor     4.4458        31.111       -.17350E-05   -.10224E-04
  12  norm          6.5291        2.7456       -.14193E-07   -.43638E-03
  13  Prefactor     303.54        118.45       -.20531E-04   -.52189E-03
  14  Prefactor     .10001E-03    25.672        .27111E-04** at limit **
  15  norm          .10000E-03    1.2934        .25184E-05** at limit **
  16  norm          38.985        21.588        .12546E-05   -.95256E-03
  17  Prefactor     .10000E-03    6.7955        .24734E-05** at limit **
  18  Prefactor     35.275        15.716       -.24496E-06   -.33967E-04
  19  norm          .10000E-03    .32537       -.14469E-07** at limit **
  20  Prefactor     .10000E-03    5.7511       -.50434E-05** at limit **
  21  Prefactor     .10000E-03    6.6056        .10766E-05** at limit **
  22  Prefactor     30.020        20.622       -.67614E-06   -.26439E-04
  23  Prefactor     52.347        36.906        .71486E-05   -.23375E-03
  24  Prefactor     20.742        14.891       -.53530E-06   -.59306E-04
  25  Prefactor     .98818        .32654       -.17624E-07   -.62071E-03
  26  Prefactor     .10000E-03    2.8358        .22115E-06** at limit **
  27  Normalizat    .61176        .24791       -.15521E-05   -.51061E-03
  28  Prefactor     .94972        .11468        .89385E-06   -.10394E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5454
  Prefactor  = 0.0001
  Prefactor  = 2.55461
  Prefactor  = 0.0001
  Prefactor  = 4.0212
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.4795
  Prefactor  = 4.44577
  norm       = 6.52913
  Prefactor  = 303.538
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 38.9852
  Prefactor  = 0.0001
  Prefactor  = 35.2747
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0197
  Prefactor  = 52.3467
  Prefactor  = 20.7418
  Prefactor  = 0.988183
  Prefactor  = 0.0001
  Normalizat = 0.61176
  Prefactor  = 0.949721
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.989     FROM HESSE     STATUS=OK           517 CALLS     4105 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.545        25.269        .11792E-03   -1.5028    
   2  Prefactor     .10000E-03    11.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5546        76.416        .25517E-03   -1.5388    
   4  Prefactor     .10000E-03    10.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0212        24.716        .20109E-03   -1.5307    
   6  Prefactor     .10001E-03    30.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9877        .34878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3330        .14378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .79151        .69850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.479        36.885        .55895E-04   -1.4272    
  11  Prefactor     4.4458        31.100        .19097E-03   -1.5286    
  12  norm          6.5291        2.7431        .83163E-04   -1.5197    
  13  Prefactor     303.54        115.64        .11657E-03   -1.2206    
  14  Prefactor     .10001E-03    25.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7862        .16329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          38.985        21.281        .64195E-04   -1.4458    
  17  Prefactor     .10000E-03    6.9624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.275        15.698        .67474E-04   -1.4519    
  19  norm          .10000E-03    .45073        .89867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.020        20.598        .73125E-04   -1.4612    
  23  Prefactor     52.347        36.832        .55438E-04   -1.4260    
  24  Prefactor     20.742        14.909        .87945E-04   -1.4797    
  25  Prefactor     .98818        .32644        .24833E-04   -1.5509    
  26  Prefactor     .10000E-03    2.8370        .13342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .61176        .27465        .41027E-03   -1.0749    
  28  Prefactor     .94972        .13134        .16914E-03   -.94425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91501e-09
Minuit parameter uncertainties:
  1  25.2925
  2  2.95794e-06
  3  27.9824
  4  6.9797e-05
  5  19.9509
  6  0.000898783
  7  1.21486e-05
  8  7.28856e-06
  9  6.45476e-06
  10  36.9015
  11  23.5343
  12  2.74312
  13  115.727
  14  0.000765628
  15  4.59488e-05
  16  21.2852
  17  6.8759e-05
  18  15.7001
  19  3.12549e-07
  20  4.80238e-05
  21  1.18744e-05
  22  20.6033
  23  36.8481
  24  14.9121
  25  0.326442
  26  2.81676e-06
  27  0.275264
  28  0.131386
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  3.899e+01  2.129e+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:  9.497e-01  1.314e-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:  6.118e-01  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.82
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 9.19e-08 +/- 5.02e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.22e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6580.57880997
delta logL = 0.409800344652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6580.54580169
delta logL = 0.442808618361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.079       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0944       1.0000          .0000       5.0000    
     3 'Normalizat'    .64486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93722       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=   6580.546     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.093        24.413        .59714E-04   -.20622E-03
   2  alpha         2.0935        .56481        .16317E-01   -.29852E-04
   3  Normalizat    .64447        .25528        .40034E-03   -.59701E-03
   4  Prefactor     .93729        .12920        .17006E-03   -.12726E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 45.0932
  alpha      = 2.09353
  Normalizat = 0.644467
  Prefactor  = 0.937292
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.546     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.093        24.448        .11943E-04   -1.4364    
   2  alpha         2.0935        .56549        .65266E-03   -.16331    
   3  Normalizat    .64447        .25540        .16013E-04   -1.0613    
   4  Prefactor     .93729        .12925        .34013E-04   -.94850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26406e-10
Minuit parameter uncertainties:
  1  24.453
  2  0.570559
  3  0.255869
  4  0.129295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952228': 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) = 6580.54579774
delta logL = 0.442812572478

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  4.509e+01  2.445e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.094e+00  5.706e-01  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  2.404e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  4.369e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  9.373e-01  1.293e-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:  6.445e-01  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.09 +/- 0.57
Photon Flux (Free Index): 7.15e-08 +/- 4.66e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/952228/cmap_HighResolution_394588801_394848001_4FGL_J2148.6+0652_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.19e-08', energy_flux2='2.55e-05', photon_flux_error='5.02e-08', dlogl='4.43e-01', energy_flux='2.23e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-27 16:41:19.904353', photon_index_error2='0.57', photon_index2='2.09', ts='5.82', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.61', time_epoch_completed='1632786079.9', return_code='0', job_id='952228', GAL2='0.94', EG2='0.64', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.66e-08', ts2='6.65', photon_index='2.66' WHERE bin_id='599' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:41:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 952228: <4FGL_J2148.6+0652_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin599 327.163 6.8791 394588801 394848001 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 :                                   607.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             226.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            968 sec.

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

