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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin975
RA = 327.163, Dec = 6.8791
tmin = 492048001, tmax = 492307201
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='954604', job_status='RUN', time_executed='2021-09-27 16:39:24.763647', time_epoch_executed='1632785964.76' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954604/ft1_4FGL_J2148.6+0652_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954604/ft2_4FGL_J2148.6+0652_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954604/ft1_4FGL_J2148.6+0652_daily_bin975.fits outfile=/scratch/kocevski/954604/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin975.fits ra=327.163 dec=6.8791 rad=12.0 tmin=492048001.0 tmax=492307201.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.09
user 2.86
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954604/ft1_filtered_4FGL_J2148.6+0652_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/954604/ft2_4FGL_J2148.6+0652_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/954604/ltcube_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.fits outfile=/scratch/kocevski/954604/expmap_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.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/954604/ltcube_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.fits
.....................!
real 156.99
user 151.81
sys 4.85

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/954604/ft1_filtered_4FGL_J2148.6+0652_daily_bin975.fits scfile=/scratch/kocevski/954604/ft2_4FGL_J2148.6+0652_daily_bin975.fits outfile=/scratch/kocevski/954604/cmap_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.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.32
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954604/ft1_filtered_4FGL_J2148.6+0652_daily_bin975.fits', '/scratch/kocevski/954604/ft2_4FGL_J2148.6+0652_daily_bin975.fits', expMap='/scratch/kocevski/954604/expmap_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.fits', expCube='/scratch/kocevski/954604/ltcube_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954604/Model_4FGL_J2148.6+0652_daily_bin975.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/954604/ft1_filtered_4FGL_J2148.6+0652_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/954604/ft2_4FGL_J2148.6+0652_daily_bin975.fits
Exposure map: /scratch/kocevski/954604/expmap_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.fits
Exposure cube: /scratch/kocevski/954604/ltcube_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954604/Model_4FGL_J2148.6+0652_daily_bin975.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    187.01       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    85.103       1.0000         .10000E-03   10000.    
     6 'Prefactor '    86.310       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1101       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2749       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .27223E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    53.723       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4389       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.703       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.751       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.6584       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.322       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .24363E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2638       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=   2714.880     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     4525 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31583E-03    415.13       -.33702E-04** at limit **
   2  Prefactor     187.00        1.1468       -.36209E-07    .34677E-03
   3  Prefactor     11.559        1.2362       -.21091E-06    .21332E-03
   4  Prefactor     .10012E-03    88.088        .32094E-05** at limit **
   5  Prefactor     85.093        2.8747       -.26458E-06    .13004E-02
   6  Prefactor     86.298        3.2337       -.26955E-06    .59030E-03
   7  Prefactor     .10000E-03    7.8530       -.10992E-05** at limit **
   8  Prefactor     .10001E-03    16.350       -.86788E-05** at limit **
   9  Prefactor     .10000E-03    1.4623       -.54128E-06** at limit **
  10  Prefactor     3.0868        6.0457       -.28477E-05    .30296E-03
  11  Prefactor     9.2532        4.9457       -.10415E-05   -.44072E-03
  12  norm          .10002E-03    17.114        .89935E-05** at limit **
  13  Prefactor     .10457E-03    35.996       -.51647E-05** at limit **
  14  Prefactor     .10228E-03    70.202       -.10567E-04** at limit **
  15  norm          .24594E-03    117.12       -.85365E-05** at limit **
  16  norm          53.701        5.1660       -.55861E-06    .70857E-03
  17  Prefactor     .10000E-03    5.8127       -.92068E-06** at limit **
  18  Prefactor     7.4345        1.9408        .21922E-06   -.12185E-02
  19  norm          .10000E-03    11.503       -.33840E-05** at limit **
  20  Prefactor     .10010E-03    20.265        .44595E-05** at limit **
  21  Prefactor     11.513        1.7128       -.14510E-06   -.44206E-03
  22  Prefactor     .10015E-03    19.553       -.65874E-05** at limit **
  23  Prefactor     22.693        2.9653       -.50709E-06    .52219E-03
  24  Prefactor     16.748        1.2632       -.14911E-06    .47411E-04
  25  Prefactor     1.6583        .75176        .93607E-07   -.37358E-04
  26  Prefactor     24.322        1.0067       -.88908E-08    .22179E-04
  27  Normalizat    .25131E-01    2.2338        .84878E-04    .53004E-05
  28  Prefactor     1.2635        .20747        .34780E-05    .80531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000315831
  Prefactor  = 187.003
  Prefactor  = 11.5587
  Prefactor  = 0.000100125
  Prefactor  = 85.0926
  Prefactor  = 86.2979
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 3.08685
  Prefactor  = 9.2532
  norm       = 0.000100022
  Prefactor  = 0.000104571
  Prefactor  = 0.000102283
  norm       = 0.000245936
  norm       = 53.7009
  Prefactor  = 0.0001
  Prefactor  = 7.43452
  norm       = 0.0001
  Prefactor  = 0.000100105
  Prefactor  = 11.5134
  Prefactor  = 0.000100151
  Prefactor  = 22.6925
  Prefactor  = 16.7478
  Prefactor  = 1.6583
  Prefactor  = 24.3219
  Normalizat = 0.0251311
  Prefactor  = 1.26354
 **********
 **   18 **HESSE 
 **********

 FCN=   2714.880     FROM HESSE     STATUS=NOT POSDEF   589 CALLS     5114 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31583E-03    629.42        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     187.00        124.85        .73820E-03   -1.2964    
   3  Prefactor     11.559        369.55        .29455E-02   -1.5028    
   4  Prefactor     .10012E-03    104.93        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     85.093        103.22        .10887E-02   -1.3860    
   6  Prefactor     86.298        107.09        .10811E-02   -1.3847    
   7  Prefactor     .10000E-03    7.2756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    15.138        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0868        1764.8        .57482E-02   -1.5357    
  11  Prefactor     9.2532        124.57        .32899E-02   -1.5099    
  12  norm          .10002E-03    15.753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10457E-03    87.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10228E-03    78.069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .24594E-03    3.9623        .58371E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          53.701        98.318        .13681E-02   -1.4241    
  17  Prefactor     .10000E-03    5.4080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4345        27.195        .36762E-02   -1.5163    
  19  norm          .10000E-03    5.5051        .43455E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10010E-03    19.064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.513        60.156        .29507E-02   -1.5029    
  22  Prefactor     .10015E-03    18.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.693        100.58        .21016E-02   -1.4755    
  24  Prefactor     16.748        41.411        .24465E-02   -1.4889    
  25  Prefactor     1.6583        1.0202        .66236E-02   -1.5450    
  26  Prefactor     24.322        19.990        .20306E-02   -1.4721    
  27  Normalizat    .25131E-01    9.9797        .32333       -1.4929    
  28  Prefactor     1.2635        1.0244        .33273E-01   -.84398    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.70982e-07
Minuit parameter uncertainties:
  1  0.745115
  2  125.032
  3  131.609
  4  0.00724163
  5  103.442
  6  107.327
  7  1.06496e-06
  8  0.000565153
  9  6.6143e-07
  10  152.369
  11  68.0742
  12  0.00116757
  13  0.0399999
  14  0.0267356
  15  0.0480964
  16  98.6171
  17  4.60048e-06
  18  27.2404
  19  6.85291e-06
  20  0.00282548
  21  52.7177
  22  0.00336734
  23  95.8215
  24  41.4825
  25  1.02024
  26  19.9954
  27  1.26895
  28  1.04138
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.370e+01  9.862e+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.264e+00  1.041e+00  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:  2.513e-02  1.269e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 2.32e-07
Energy Flux (Fixed Index): 3.08e-05 +/- 5.65e-05

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

Saving results to:
/scratch/kocevski/954604/likelihoodResults_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.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) = 2714.86483853
delta logL = 0.0153061794913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2714.86120938
delta logL = 0.0189353255068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.923       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9442       1.0000          .0000       5.0000    
     3 'Normalizat'    .10076E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2675       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=   2714.861     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      297 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.932        56.685        .56200E-04   -.86382E-03
   2  alpha         2.9435        1.4933        .22775E-01   -.12972E-03
   3  Normalizat    .10000E-01    1.2376        .19920    ** at limit **
   4  Prefactor     1.2675        .18828        .16232E-03    .24109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 50.9321
  alpha      = 2.94353
  Normalizat = 0.01
  Prefactor  = 1.26751
 **********
 **   18 **HESSE 
 **********

 FCN=   2714.861     FROM HESSE     STATUS=OK            33 CALLS      330 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.932        54.829        .11240E-04   -1.4279    
   2  alpha         2.9435        1.4470        .91100E-03    .17836    
   3  Normalizat    .10000E-01    1.0599        .21689       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2675        .18790        .32463E-04   -.84278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59913e-09
Minuit parameter uncertainties:
  1  54.8837
  2  1.5469
  3  0.000148235
  4  0.187999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954604': 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) = 2714.86120432
delta logL = 0.0189403825225

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.093e+01  5.488e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.944e+00  1.547e+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.268e+00  1.880e-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.000e-02  1.482e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.94 +/- 1.55
Photon Flux (Free Index): 1.53e-07 +/- 2.02e-07
Energy Flux (Free Index): 3.26e-05 +/- 3.25e-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/954604/cmap_HighResolution_492048001_492307201_4FGL_J2148.6+0652_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-05', comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='3.26e-05', photon_flux_error='2.32e-07', dlogl='1.89e-02', energy_flux='3.08e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-27 16:47:03.627520', photon_index_error2='1.55', photon_index2='2.94', ts='1.44', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='3.99e-07', energy_flux_error2='3.25e-05', EG='0.03', time_epoch_completed='1632786423.63', return_code='102', job_id='954604', GAL2='1.27', EG2='0.01', return_code2='0', energy_flux_error='5.65e-05', photon_flux_error2='2.02e-07', ts2='1.47', photon_index='2.66' WHERE bin_id='975' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:47:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 954604: <4FGL_J2148.6+0652_daily_bin975> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin975> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 16:35:18 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:36:40 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:36:40 2021
Terminated at Mon Sep 27 16:47:04 2021
Results reported at Mon Sep 27 16:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin975 327.163 6.8791 492048001 492307201 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 :                                   454.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            706 sec.

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

