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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin478
RA = 327.163, Dec = 6.8791
tmin = 363225601, tmax = 363484801
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='950971', job_status='RUN', time_executed='2021-09-27 16:24:21.882879', time_epoch_executed='1632785061.88' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950971/ft1_4FGL_J2148.6+0652_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950971/ft2_4FGL_J2148.6+0652_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950971/ft1_4FGL_J2148.6+0652_daily_bin478.fits outfile=/scratch/kocevski/950971/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin478.fits ra=327.163 dec=6.8791 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.09
user 6.77
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950971/ft1_filtered_4FGL_J2148.6+0652_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/950971/ft2_4FGL_J2148.6+0652_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/950971/ltcube_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.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/950971/ft2_4FGL_J2148.6+0652_daily_bin478.fits
.....................!
real 14.52
user 14.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950971/ft1_filtered_4FGL_J2148.6+0652_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/950971/ft2_4FGL_J2148.6+0652_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/950971/ltcube_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.fits outfile=/scratch/kocevski/950971/expmap_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.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/950971/ltcube_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.fits
.....................!
real 191.92
user 186.27
sys 4.90

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/950971/ft1_filtered_4FGL_J2148.6+0652_daily_bin478.fits scfile=/scratch/kocevski/950971/ft2_4FGL_J2148.6+0652_daily_bin478.fits outfile=/scratch/kocevski/950971/cmap_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950971/ft1_filtered_4FGL_J2148.6+0652_daily_bin478.fits scfile=/scratch/kocevski/950971/ft2_4FGL_J2148.6+0652_daily_bin478.fits outfile=/scratch/kocevski/950971/cmap_HighResolution_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9348       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12441E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0786       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16860E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .54725       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.706       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14521E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14454E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .74577       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.1547       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0337       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80961       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=   4791.690     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3022 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.197        .46677E-05** at limit **
   2  Prefactor     6.9109        20.282        .58275E-05   -.60951E-04
   3  Prefactor     .10000E-03    12.280       -.11543E-05** at limit **
   4  Prefactor     .10000E-03    26.402       -.86849E-05** at limit **
   5  Prefactor     32.547        21.308        .13445E-05   -.11551E-04
   6  Prefactor     .10000E-03    61.250        .10670E-04** at limit **
   7  Prefactor     .10000E-03    4.1497       -.11859E-07** at limit **
   8  Prefactor     .10000E-03    14.727        .36234E-05** at limit **
   9  Prefactor     10.185        3.7014       -.46788E-07   -.13161E-03
  10  Prefactor     .10000E-03    13.781       -.31213E-05** at limit **
  11  Prefactor     .10000E-03    17.106       -.60034E-06** at limit **
  12  norm          3.0795        2.5972       -.88169E-07   -.26137E-03
  13  Prefactor     .10000E-03    312.32       -.11526E-04** at limit **
  14  Prefactor     .10000E-03    29.149        .10622E-04** at limit **
  15  norm          .10000E-03    1.4358        .55946E-07** at limit **
  16  norm          .10000E-03    10.661       -.28173E-05** at limit **
  17  Prefactor     .38273        9.6184       -.19006E-06   -.14687E-03
  18  Prefactor     .10000E-03    4.3014        .74566E-08** at limit **
  19  norm          .54744        1.0749       -.25317E-06   -.13223E-02
  20  Prefactor     36.721        27.428       -.42680E-05    .17449E-04
  21  Prefactor     .10000E-03    9.4730        .25233E-06** at limit **
  22  Prefactor     .10000E-03    11.152        .42878E-05** at limit **
  23  Prefactor     .10000E-03    44.412       -.10477E-04** at limit **
  24  Prefactor     .10000E-03    55.045       -.73968E-05** at limit **
  25  Prefactor     .74536        .34563        .14225E-07    .71025E-03
  26  Prefactor     5.1545        7.2889       -.90233E-06   -.85549E-03
  27  Normalizat    1.0345        .25082        .73932E-06   -.37456E-04
  28  Prefactor     .80930        .12114       -.17744E-06    .21518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 6.91095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.382727
  Prefactor  = 0.0001
  norm       = 0.547445
  Prefactor  = 36.7207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.74536
  Prefactor  = 5.15447
  Normalizat = 1.03448
  Prefactor  = 0.809298
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.690     FROM HESSE     STATUS=OK           517 CALLS     3539 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9109        20.085        .15235E-03   -1.5182    
   3  Prefactor     .10000E-03    12.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.547        21.305        .70228E-04   -1.4566    
   6  Prefactor     .10000E-03    61.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2331        .13764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.185        3.7033        .77168E-04   -1.5070    
  10  Prefactor     .10000E-03    13.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0795        2.5917        .98777E-04   -1.5357    
  13  Prefactor     .10000E-03    313.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8623        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38273        59.457        .40330E-02   -1.5584    
  18  Prefactor     .10000E-03    4.3059        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .54744        .97420        .97635E-03   -1.5560    
  20  Prefactor     36.721        27.371        .66151E-04   -1.4495    
  21  Prefactor     .10000E-03    9.5060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    44.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    57.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .74536        .34431        .26784E-04   -1.5535    
  26  Prefactor     5.1545        7.4239        .88535E-03   -1.5254    
  27  Normalizat    1.0345        .29624        .31336E-03   -.91884    
  28  Prefactor     .80930        .14496        .17413E-03   -.99387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42588e-09
Minuit parameter uncertainties:
  1  0.000533776
  2  20.1044
  3  5.86054e-06
  4  4.91364e-06
  5  21.31
  6  2.34172e-05
  7  8.13147e-06
  8  6.45961e-05
  9  3.7034
  10  6.79446e-07
  11  5.48573e-07
  12  2.59178
  13  6.44644e-05
  14  1.94241e-05
  15  1.34028e-05
  16  1.02997e-05
  17  9.54906
  18  1.68899e-06
  19  0.974232
  20  27.3804
  21  3.34135e-06
  22  1.33027e-05
  23  0.000168411
  24  0.000276758
  25  0.344312
  26  7.42521
  27  0.296716
  28  0.145026
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  1.030e-05  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:  8.093e-01  1.450e-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.034e+00  2.967e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950971/likelihoodResults_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.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): 102
logL (Free Index) = 4791.69085966
delta logL = -0.000446073489911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4791.69040968
delta logL = 3.90159129893e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11923E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0544       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80963       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.

 FCN=   4791.681     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      260 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0076        19.886        .90712E-02    .73474E-03
   2  alpha         1.0777        2.9578        .50000       -.64498E-04
   3  Normalizat    1.0365        .24081        .70762E-01    .22740E-03
   4  Prefactor     .80757        .12096        .43842E-01    .28512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00758
  alpha      = 1.07772
  Normalizat = 1.03649
  Prefactor  = 0.807575
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.681     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0076        14.863        .36285E-03   -1.5507    
   2  alpha         1.0777        2.9995        .77083E-01   -.60518    
   3  Normalizat    1.0365        .28696        .31309E-03   -.91818    
   4  Prefactor     .80757        .14415        .17430E-03   -.99450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54781e-09
Minuit parameter uncertainties:
  1  7.74146
  2  2.50255
  3  0.287393
  4  0.144213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950971': 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) = 4791.68111064
delta logL = 0.00930294442878

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.008e+00  7.741e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.078e+00  2.503e+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:  8.076e-01  1.442e-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.036e+00  2.874e-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/950971/cmap_HighResolution_363225601_363484801_4FGL_J2148.6+0652_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-09-27 16:35:31.477247', job_id='950971', GAL2='0.81', fit_tolerance='1e-08', EG2='1.04', EG='1.03', time_epoch_completed='1632785731.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='478' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:35:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 950971: <4FGL_J2148.6+0652_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin478 327.163 6.8791 363225601 363484801 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 :                                   664.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            916 sec.

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

