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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin768
RA = 327.163, Dec = 6.8791
tmin = 438393601, tmax = 438652801
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='953258', job_status='RUN', time_executed='2021-09-27 16:33:33.670671', time_epoch_executed='1632785613.67' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953258/ft1_4FGL_J2148.6+0652_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953258/ft2_4FGL_J2148.6+0652_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953258/ft1_4FGL_J2148.6+0652_daily_bin768.fits outfile=/scratch/kocevski/953258/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin768.fits ra=327.163 dec=6.8791 rad=12.0 tmin=438393601.0 tmax=438652801.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 6.95
user 6.02
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953258/ft1_filtered_4FGL_J2148.6+0652_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/953258/ft2_4FGL_J2148.6+0652_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/953258/ltcube_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.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/953258/ft2_4FGL_J2148.6+0652_daily_bin768.fits
.....................!
real 13.54
user 13.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953258/ft1_filtered_4FGL_J2148.6+0652_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/953258/ft2_4FGL_J2148.6+0652_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/953258/ltcube_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.fits outfile=/scratch/kocevski/953258/expmap_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.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/953258/ltcube_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.fits
.....................!
real 194.97
user 188.92
sys 5.45

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/953258/ft1_filtered_4FGL_J2148.6+0652_daily_bin768.fits scfile=/scratch/kocevski/953258/ft2_4FGL_J2148.6+0652_daily_bin768.fits outfile=/scratch/kocevski/953258/cmap_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953258/ft1_filtered_4FGL_J2148.6+0652_daily_bin768.fits scfile=/scratch/kocevski/953258/ft2_4FGL_J2148.6+0652_daily_bin768.fits outfile=/scratch/kocevski/953258/cmap_HighResolution_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.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/953258/ft1_filtered_4FGL_J2148.6+0652_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/953258/ft2_4FGL_J2148.6+0652_daily_bin768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953258/Model_4FGL_J2148.6+0652_daily_bin768.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/953258/ft1_filtered_4FGL_J2148.6+0652_daily_bin768.fits.....................!
real 43.84
user 42.51
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3748.92283707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61541E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18918E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12162E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16224E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.217       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6638       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67495E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    12.821       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91908E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    29.692       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13558E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52596E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    87.492       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.148       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13105E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    177.59       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29018E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3040       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15188E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .66562E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3748.916     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     2571 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.095        .49852E-05** at limit **
   2  Prefactor     .11362E-03    70.797       -.27738E-04** at limit **
   3  Prefactor     .10000E-03    32.058       -.73951E-06** at limit **
   4  Prefactor     .10000E-03    72.607        .15320E-05** at limit **
   5  Prefactor     41.270        20.860       -.15745E-06    .52582E-02
   6  Prefactor     44.256        52.507        .35738E-04    .26367E-02
   7  Prefactor     19.222        12.441        .41783E-05   -.30971E-04
   8  Prefactor     1.6954        25.330       -.44513E-05   -.53103E-04
   9  Prefactor     .10000E-03    1.3351       -.20323E-05** at limit **
  10  Prefactor     43.663        27.091        .44031E-04   -.74319E-02
  11  Prefactor     .10000E-03    21.202       -.14167E-05** at limit **
  12  norm          12.802        5.5716        .15099E-05   -.12324E-03
  13  Prefactor     45.546        83.351        .72235E-04   -.48600E-02
  14  Prefactor     .15142E-03    86.159       -.35211E-03** at limit **
  15  norm          .10000E-03    1.4651        .76828E-06** at limit **
  16  norm          28.735        25.799       -.18622E-04    .44999E-02
  17  Prefactor     .10000E-03    12.505       -.22537E-05** at limit **
  18  Prefactor     .10000E-03    13.772       -.32537E-05** at limit **
  19  norm          .10000E-03    1.9572        .99422E-06** at limit **
  20  Prefactor     87.882        44.716        .43165E-04   -.35880E-02
  21  Prefactor     31.060        23.846        .12833E-04    .30527E-02
  22  Prefactor     .10000E-03    9.4964       -.35012E-05** at limit **
  23  Prefactor     181.33        41.038       -.97802E-05    .19307E-01
  24  Prefactor     .10000E-03    18.480        .40399E-06** at limit **
  25  Prefactor     2.2994        .64246        .30506E-06   -.56116E-04
  26  Prefactor     .10000E-03    7.6668       -.54382E-05** at limit **
  27  Normalizat    .70958E-01    .60206       -.18964E-03    .90112E-07
  28  Prefactor     1.0855        .18415        .92621E-05   -.73435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000113621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.2705
  Prefactor  = 44.2561
  Prefactor  = 19.2221
  Prefactor  = 1.6954
  Prefactor  = 0.0001
  Prefactor  = 43.6632
  Prefactor  = 0.0001
  norm       = 12.8022
  Prefactor  = 45.5458
  Prefactor  = 0.000151421
  norm       = 0.0001
  norm       = 28.7352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 87.8822
  Prefactor  = 31.0596
  Prefactor  = 0.0001
  Prefactor  = 181.328
  Prefactor  = 0.0001
  Prefactor  = 2.29941
  Prefactor  = 0.0001
  Normalizat = 0.0709577
  Prefactor  = 1.08553
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.916     FROM HESSE     STATUS=NOT POSDEF   583 CALLS     3154 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.491        .10525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11362E-03    31.806        .11817       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    62.471        .91039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.270        79.531        .15735E-02   -1.4422    
   6  Prefactor     44.256        107.40        .14437E-02   -1.4376    
   7  Prefactor     19.222        19.455        .22686E-02   -1.4831    
   8  Prefactor     1.6954        45.601        .81747E-02   -1.5448    
   9  Prefactor     .10000E-03    1.1446        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.663        63.004        .15197E-02   -1.4385    
  11  Prefactor     .10000E-03    18.231        .93790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.802        5.4868        .27967E-02   -1.4992    
  13  Prefactor     45.546        87.359        .15583E-02   -1.4357    
  14  Prefactor     .15142E-03    108.63        .91152E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          28.735        58.510        .18382E-02   -1.4635    
  17  Prefactor     .10000E-03    10.662        .10274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.891        .10566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0831        .25731E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     87.882        78.633        .10738E-02   -1.3830    
  21  Prefactor     31.060        35.768        .17667E-02   -1.4593    
  22  Prefactor     .10000E-03    8.1638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     181.33        127.79        .75716E-03   -1.3007    
  24  Prefactor     .10000E-03    15.973        .99321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2994        .96639        .56272E-02   -1.5405    
  26  Prefactor     .10000E-03    6.5738        .10230E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .70958E-01    8.9801        .28902       -1.4144    
  28  Prefactor     1.0855        .88828        .38107E-01   -.89930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.54583e-06
Minuit parameter uncertainties:
  1  2.07335e-05
  2  0.04165
  3  2.07434e-05
  4  0.000115414
  5  79.7366
  6  107.872
  7  19.4618
  8  17.5999
  9  2.60741e-06
  10  63.1003
  11  1.12218e-05
  12  5.48702
  13  87.6055
  14  0.149752
  15  2.547e-06
  16  58.6276
  17  3.3529e-05
  18  2.71835e-05
  19  1.95943e-06
  20  78.7262
  21  35.7929
  22  1.15105e-07
  23  127.987
  24  2.79808e-06
  25  0.966398
  26  2.6124e-05
  27  1.85201
  28  0.900817
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3748.91563781

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.874e+01  5.863e+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:  1.086e+00  9.008e-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:  7.096e-02  1.852e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 6.77e-08 +/- 1.38e-07
Energy Flux (Fixed Index): 1.65e-05 +/- 3.36e-05

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

Saving results to:
/scratch/kocevski/953258/likelihoodResults_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.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) = 3748.9104485
delta logL = 0.00518931401848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3748.90923264
delta logL = 0.00640516842532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.301       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4037       1.0000          .0000       5.0000    
     3 'Normalizat'    .89845E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0792       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=   3748.909     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      274 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.268        36.904        .75308E-04   -.16354E-03
   2  alpha         2.4029        1.9782        .35082E-01    .14591E-04
   3  Normalizat    .89842E-01    .63530        .97404E-02    .58146E-04
   4  Prefactor     1.0791        .21467        .16047E-03    .40501E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.2683
  alpha      = 2.40289
  Normalizat = 0.0898415
  Prefactor  = 1.07911
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.909     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.268        37.879        .15062E-04   -1.4644    
   2  alpha         2.4029        1.9874        .14033E-02   -.38853E-01
   3  Normalizat    .89842E-01    .50521        .38962E-03   -1.3918    
   4  Prefactor     1.0791        .19101        .32095E-04   -.90137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52851e-10
Minuit parameter uncertainties:
  1  37.9115
  2  2.29809
  3  0.406846
  4  0.191132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953258': 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) = 3748.90923171
delta logL = 0.00640610634082

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.827e+01  3.791e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.403e+00  2.298e+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:  1.079e+00  1.911e-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.984e-02  4.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.40 +/- 2.30
Photon Flux (Free Index): 5.48e-08 +/- 1.37e-07
Energy Flux (Free Index): 1.55e-05 +/- 2.17e-05

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/953258/cmap_HighResolution_438393601_438652801_4FGL_J2148.6+0652_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-05', comment='SUCCESS', photon_flux='6.77e-08', energy_flux2='1.55e-05', photon_flux_error='1.38e-07', dlogl='6.41e-03', energy_flux='1.65e-05', photon_flux2='5.48e-08', job_status='DONE', time_completed='2021-09-27 16:43:52.947632', photon_index_error2='2.30', photon_index2='2.40', ts='1.02', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='2.54e-07', energy_flux_error2='2.17e-05', EG='0.07', time_epoch_completed='1632786232.95', return_code='102', job_id='953258', GAL2='1.08', EG2='0.09', return_code2='0', energy_flux_error='3.36e-05', photon_flux_error2='1.37e-07', ts2='1.02', photon_index='2.66' WHERE bin_id='768' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 953258: <4FGL_J2148.6+0652_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin768 327.163 6.8791 438393601 438652801 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 :                                   615.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            812 sec.

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

