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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin974
RA = 327.163, Dec = 6.8791
tmin = 491788801, tmax = 492048001
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='954603', job_status='RUN', time_executed='2021-09-27 16:39:42.471119', time_epoch_executed='1632785982.47' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954603

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954603/ft1_4FGL_J2148.6+0652_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954603/ft2_4FGL_J2148.6+0652_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954603/ft1_4FGL_J2148.6+0652_daily_bin974.fits outfile=/scratch/kocevski/954603/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin974.fits ra=327.163 dec=6.8791 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.24
user 3.99
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954603/ft1_filtered_4FGL_J2148.6+0652_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/954603/ft2_4FGL_J2148.6+0652_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/954603/ltcube_491788801_492048001_4FGL_J2148.6+0652_daily_bin974.fits outfile=/scratch/kocevski/954603/expmap_491788801_492048001_4FGL_J2148.6+0652_daily_bin974.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/954603/ltcube_491788801_492048001_4FGL_J2148.6+0652_daily_bin974.fits
.....................!
real 192.99
user 185.86
sys 5.62

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/954603/ft1_filtered_4FGL_J2148.6+0652_daily_bin974.fits scfile=/scratch/kocevski/954603/ft2_4FGL_J2148.6+0652_daily_bin974.fits outfile=/scratch/kocevski/954603/cmap_491788801_492048001_4FGL_J2148.6+0652_daily_bin974.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/954603/ft1_filtered_4FGL_J2148.6+0652_daily_bin974.fits scfile=/scratch/kocevski/954603/ft2_4FGL_J2148.6+0652_daily_bin974.fits outfile=/scratch/kocevski/954603/cmap_HighResolution_491788801_492048001_4FGL_J2148.6+0652_daily_bin974.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    165.29       1.0000         .10000E-03   10000.    
     3 'Prefactor '    91.642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.456       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    404.84       1.0000         .10000E-03   10000.    
    14 'Prefactor '    194.82       1.0000         .10000E-03   10000.    
    15 'norm      '    .10720E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.415       1.0000         .10000E-03   10000.    
    19 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12734E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.578       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9363       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97822       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=   1102.261     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3496 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.42        .27431E-06** at limit **
   2  Prefactor     165.29        211.49       -.38533E-06    .19353E-04
   3  Prefactor     91.505        383.17       -.65682E-05    .85519E-05
   4  Prefactor     .10000E-03    63.513       -.16049E-06** at limit **
   5  Prefactor     39.594        85.843       -.37997E-06    .31239E-04
   6  Prefactor     .10000E-03    31.444        .12045E-06** at limit **
   7  Prefactor     .10000E-03    20.576       -.10823E-05** at limit **
   8  Prefactor     .10000E-03    27.282       -.48114E-06** at limit **
   9  Prefactor     .10000E-03    2.5730        .25778E-06** at limit **
  10  Prefactor     64.360        87.386       -.55288E-06    .82108E-04
  11  Prefactor     47.451        68.361       -.66152E-06    .41886E-04
  12  norm          .10000E-03    10.449       -.69284E-07** at limit **
  13  Prefactor     404.19        648.13        .84306E-05    .22875E-04
  14  Prefactor     194.73        207.72       -.15798E-05    .68427E-04
  15  norm          .10001E-03    40.362       -.13480E-04** at limit **
  16  norm          .10000E-03    79.369       -.21033E-05** at limit **
  17  Prefactor     .10000E-03    72.084       -.35620E-05** at limit **
  18  Prefactor     63.409        41.529       -.35476E-06    .23775E-03
  19  norm          .10000E-03    8.4562        .14451E-06** at limit **
  20  Prefactor     .10001E-03    216.74       -.25370E-05** at limit **
  21  Prefactor     62.570        59.806       -.74194E-06    .19765E-03
  22  Prefactor     .10000E-03    92.338        .28077E-06** at limit **
  23  Prefactor     .10000E-03    66.467       -.28305E-07** at limit **
  24  Prefactor     .10000E-03    118.43        .14130E-05** at limit **
  25  Prefactor     1.9359        1.2757       -.17133E-07    .47864E-03
  26  Prefactor     .10000E-03    21.119        .26430E-06** at limit **
  27  Normalizat    .10000E-01    .36346       -.13543E-04** at limit **
  28  Prefactor     .97847        .19457        .37447E-05    .38743E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 165.292
  Prefactor  = 91.5049
  Prefactor  = 0.0001
  Prefactor  = 39.5939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.3603
  Prefactor  = 47.4514
  norm       = 0.0001
  Prefactor  = 404.191
  Prefactor  = 194.731
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.4086
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 62.5696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93588
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.978471
 **********
 **   18 **HESSE 
 **********

 FCN=   1102.261     FROM HESSE     STATUS=OK           495 CALLS     3991 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     165.29        211.67        .31373E-04   -1.3130    
   3  Prefactor     91.505        385.51        .20989E-03   -1.3792    
   4  Prefactor     .10000E-03    63.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.594        85.867        .63692E-04   -1.4449    
   6  Prefactor     .10000E-03    31.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.561        .14707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.282        .16945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5776        .51936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.360        87.327        .50028E-04   -1.4102    
  11  Prefactor     47.451        68.388        .58206E-04   -1.4329    
  12  norm          .10000E-03    10.454        .10484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     404.19        655.93        .10148E-03   -1.1659    
  14  Prefactor     194.73        206.70        .14471E-03   -1.2908    
  15  norm          .10001E-03    38.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    79.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     63.409        41.466        .50392E-04   -1.4114    
  19  norm          .10000E-03    8.5827        .94280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    218.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.570        59.756        .50726E-04   -1.4124    
  22  Prefactor     .10000E-03    92.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    66.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    119.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.9359        1.2788        .29355E-04   -1.5430    
  26  Prefactor     .10000E-03    21.118        .14904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .47062        .11317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .97847        .19758        .16753E-03   -.93451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29654e-10
Minuit parameter uncertainties:
  1  0.000525348
  2  212.651
  3  379.899
  4  0.000207963
  5  86.1368
  6  1.21341e-05
  7  2.81438e-05
  8  4.90365e-05
  9  5.93154e-06
  10  87.5019
  11  68.5011
  12  2.87191e-06
  13  668.708
  14  207.479
  15  0.000962863
  16  0.000269574
  17  0.000172669
  18  41.4844
  19  2.42924e-05
  20  0.00231597
  21  59.8137
  22  0.000273586
  23  0.000242129
  24  0.00034448
  25  1.2788
  26  6.84203e-05
  27  9.75775e-06
  28  0.197729
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  2.696e-04  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.785e-01  1.977e-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  9.758e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.163 6.879
Photon Flux Upper Limit: 4.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954603/likelihoodResults_491788801_492048001_4FGL_J2148.6+0652_daily_bin974.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) = 1102.26075567
delta logL = -6.7963984975e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1102.26068835
delta logL = -6.44843339614e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6172       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97853       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=   1102.261     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      286 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1756.2        .18142E-01** at limit **
   2  alpha         2.6559        3.8040        .19264        .78197E-09
   3  Normalizat    .10000E-01    .23671E-01    .11317E-01** at limit **
   4  Prefactor     .97847        .34182E-01    .16753E-03   -.37527E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.65593
  Normalizat = 0.01
  Prefactor  = 0.978468
 **********
 **   18 **HESSE 
 **********

 FCN=   1102.261     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    80.642        .28827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6559        3.7320        .77055E-02    .62413E-01
   3  Normalizat    .10000E-01    .47078        .22635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97847        .15339        .33506E-04   -.93451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61371e-12
Minuit parameter uncertainties:
  1  0.000140598
  2  1069.15
  3  1.87888e-07
  4  0.153463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954603': 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) = 1102.2606877
delta logL = 2.00998329092e-10

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  1.406e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.656e+00  1.069e+03  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.785e-01  1.535e-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.879e-07  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/954603/cmap_HighResolution_491788801_492048001_4FGL_J2148.6+0652_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-04', job_status='DONE', photon_flux_upper_limit='4.96e-07', time_completed='2021-09-27 16:46:27.966414', job_id='954603', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632786387.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.01e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='974' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 954603: <4FGL_J2148.6+0652_daily_bin974> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin974> 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) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:36:39 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:39 2021
Terminated at Mon Sep 27 16:46:28 2021
Results reported at Mon Sep 27 16:46:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin974 327.163 6.8791 491788801 492048001 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 :                                   400.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            670 sec.

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

