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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin744
RA = 327.163, Dec = 6.8791
tmin = 432172801, tmax = 432432001
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='953220', job_status='RUN', time_executed='2021-09-27 16:33:31.732461', time_epoch_executed='1632785611.73' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953220/ft1_4FGL_J2148.6+0652_daily_bin744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953220/ft2_4FGL_J2148.6+0652_daily_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953220/ft1_4FGL_J2148.6+0652_daily_bin744.fits outfile=/scratch/kocevski/953220/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin744.fits ra=327.163 dec=6.8791 rad=12.0 tmin=432172801.0 tmax=432432001.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.11
user 4.79
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953220/ft1_filtered_4FGL_J2148.6+0652_daily_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/953220/ft2_4FGL_J2148.6+0652_daily_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/953220/ltcube_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.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/953220/ft2_4FGL_J2148.6+0652_daily_bin744.fits
.....................!
real 15.01
user 14.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953220/ft1_filtered_4FGL_J2148.6+0652_daily_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/953220/ft2_4FGL_J2148.6+0652_daily_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/953220/ltcube_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.fits outfile=/scratch/kocevski/953220/expmap_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.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/953220/ltcube_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.fits
.....................!
real 195.57
user 188.00
sys 5.02

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/953220/ft1_filtered_4FGL_J2148.6+0652_daily_bin744.fits scfile=/scratch/kocevski/953220/ft2_4FGL_J2148.6+0652_daily_bin744.fits outfile=/scratch/kocevski/953220/cmap_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953220/ft1_filtered_4FGL_J2148.6+0652_daily_bin744.fits scfile=/scratch/kocevski/953220/ft2_4FGL_J2148.6+0652_daily_bin744.fits outfile=/scratch/kocevski/953220/cmap_HighResolution_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11756E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88107E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.108       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.100       1.0000         .10000E-03   10000.    
    15 'norm      '    .47470E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.491       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.318       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16199E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0136       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4982       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94801       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98369       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=   4775.274     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3568 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    95.045       -.11730E-03** at limit **
   2  Prefactor     .13182E-03    21.896        .22598E-05** at limit **
   3  Prefactor     31.184        38.410        .98402E-05    .11836E-03
   4  Prefactor     .10000E-03    48.744       -.41692E-04** at limit **
   5  Prefactor     .10000E-03    7.7476       -.72557E-07** at limit **
   6  Prefactor     .10000E-03    65.113        .40737E-04** at limit **
   7  Prefactor     .10000E-03    2.3846       -.25953E-07** at limit **
   8  Prefactor     11.216        11.795       -.48579E-06    .32500E-04
   9  Prefactor     .10000E-03    .82505       -.17250E-07** at limit **
  10  Prefactor     .10000E-03    13.180        .14591E-06** at limit **
  11  Prefactor     .10000E-03    19.550        .40901E-06** at limit **
  12  norm          11.107        5.3441       -.52751E-06   -.23677E-02
  13  Prefactor     .10000E-03    162.69        .84644E-04** at limit **
  14  Prefactor     25.100        38.588       -.86075E-06   -.15904E-04
  15  norm          .10017E-03    1.6518       -.64784E-06** at limit **
  16  norm          .10000E-03    7.5289        .16049E-07** at limit **
  17  Prefactor     .10000E-03    3.5392       -.27154E-07** at limit **
  18  Prefactor     .10001E-03    56.579        .44895E-04** at limit **
  19  norm          .10000E-03    1.1244       -.22322E-07** at limit **
  20  Prefactor     13.469        32.975        .91068E-05   -.82442E-04
  21  Prefactor     .10000E-03    32.406        .52652E-05** at limit **
  22  Prefactor     32.323        39.388       -.45976E-05   -.27714E-03
  23  Prefactor     .10000E-03    153.32        .43147E-04** at limit **
  24  Prefactor     3.0046        62.291        .23272E-05   -.40439E-04
  25  Prefactor     2.4981        .72081       -.19850E-07   -.23229E-03
  26  Prefactor     .10000E-03    8.6789        .16358E-07** at limit **
  27  Normalizat    .94859        .29932       -.90130E-06    .76800E-04
  28  Prefactor     .98350        .13992        .35652E-06    .30255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Prefactor  = 0.00013182
  Prefactor  = 31.1844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1071
  Prefactor  = 0.0001
  Prefactor  = 25.0997
  norm       = 0.000100172
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 13.4693
  Prefactor  = 0.0001
  Prefactor  = 32.3229
  Prefactor  = 0.000100002
  Prefactor  = 3.00461
  Prefactor  = 2.49806
  Prefactor  = 0.0001
  Normalizat = 0.948592
  Prefactor  = 0.983502
 **********
 **   18 **HESSE 
 **********

 FCN=   4775.274     FROM HESSE     STATUS=OK           515 CALLS     4083 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    95.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13182E-03    25.813        .10289       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.184        38.485        .71721E-04   -1.4591    
   4  Prefactor     .10000E-03    48.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    65.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3888        .10419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.216        11.785        .11962E-03   -1.5038    
   9  Prefactor     .10000E-03    .83086        .61270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.107        5.3491        .52791E-03   -1.5041    
  13  Prefactor     .10000E-03    163.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.100        38.588        .79957E-04   -1.4706    
  15  norm          .10017E-03    30.717        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.5323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5451        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    58.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1768        .14295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.469        32.933        .10905E-03   -1.4974    
  21  Prefactor     .10000E-03    32.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.323        39.438        .70484E-04   -1.4570    
  23  Prefactor     .10000E-03    154.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.0046        62.529        .23379E-03   -1.5361    
  25  Prefactor     2.4981        .72266        .28541E-04   -1.5392    
  26  Prefactor     .10000E-03    8.6872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .94859        .35599        .37648E-03   -.94773    
  28  Prefactor     .98350        .16938        .17797E-03   -.93282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20705e-09
Minuit parameter uncertainties:
  1  0.00315926
  2  0.057344
  3  38.5156
  4  5.95088e-05
  5  4.37385e-06
  6  0.000220339
  7  1.67684e-06
  8  11.7871
  9  1.89831e-06
  10  4.19864e-06
  11  6.61921e-06
  12  5.34934
  13  1.25618e-05
  14  38.6269
  15  0.00459539
  16  2.43072e-06
  17  2.25852e-06
  18  0.00122746
  19  2.65618e-06
  20  32.9769
  21  5.70761e-05
  22  39.47
  23  0.00121131
  24  27.4458
  25  0.722662
  26  4.70955e-07
  27  0.356878
  28  0.169467
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  2.431e-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.835e-01  1.695e-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:  9.486e-01  3.569e-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: 9.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953220/likelihoodResults_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.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) = 4775.27483846
delta logL = -0.00063152457642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4775.27420707
delta logL = -1.25808583107e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6521       1.0000          .0000       5.0000    
     3 'Normalizat'    .94842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98358       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=   4775.274     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      231 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1761.2        .18142E-02** at limit **
   2  alpha         2.3248        3.4464        .16499       -.35830E-08
   3  Normalizat    .94859        .26462        .37648E-03    .15068E-04
   4  Prefactor     .98350        .12820        .17797E-03    .32195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.32483
  Normalizat = 0.948594
  Prefactor  = 0.9835
 **********
 **   18 **HESSE 
 **********

 FCN=   4775.274     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3248        3.6575        .65997E-02   -.70126E-01
   3  Normalizat    .94859        .34418        .15059E-04   -.94773    
   4  Prefactor     .98350        .16688        .35595E-04   -.93282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38124e-11
Minuit parameter uncertainties:
  1  5.55036e-05
  2  473.601
  3  0.344987
  4  0.166963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953220': 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) = 4775.2742067
delta logL = 2.44160219154e-07

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  5.550e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.325e+00  4.736e+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.835e-01  1.670e-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:  9.486e-01  3.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.163 6.879

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953220/cmap_HighResolution_432172801_432432001_4FGL_J2148.6+0652_daily_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='9.19e-08', time_completed='2021-09-27 16:45:00.239109', job_id='953220', GAL2='0.98', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632786300.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='744' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 953220: <4FGL_J2148.6+0652_daily_bin744> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin744> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 16:30:18 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:30:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 16:30:56 2021
Terminated at Mon Sep 27 16:45:01 2021
Results reported at Mon Sep 27 16:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin744 327.163 6.8791 432172801 432432001 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 :                                   681.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            883 sec.

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

