/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 35 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 = 7682
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2148.6+0652_daily_bin85
RA = 327.163, Dec = 6.8791
tmin = 261360001, tmax = 261619201
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='948221', job_status='RUN', time_executed='2021-09-27 16:11:09.918434', time_epoch_executed='1632784269.92' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948221

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948221/ft1_4FGL_J2148.6+0652_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948221/ft2_4FGL_J2148.6+0652_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948221/ft1_4FGL_J2148.6+0652_daily_bin85.fits outfile=/scratch/kocevski/948221/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin85.fits ra=327.163 dec=6.8791 rad=12.0 tmin=261360001.0 tmax=261619201.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 1.50
user 1.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948221/ft2_4FGL_J2148.6+0652_daily_bin85.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/948221/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin85.fits evtable="EVENTS" outfile="/scratch/kocevski/948221/ft1_filtered_4FGL_J2148.6+0652_daily_bin85.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.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948221/ft1_filtered_4FGL_J2148.6+0652_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/948221/ft2_4FGL_J2148.6+0652_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/948221/ltcube_261360001_261619201_4FGL_J2148.6+0652_daily_bin85.fits outfile=/scratch/kocevski/948221/expmap_261360001_261619201_4FGL_J2148.6+0652_daily_bin85.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/948221/ltcube_261360001_261619201_4FGL_J2148.6+0652_daily_bin85.fits
.....................!
real 190.87
user 186.24
sys 4.11

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/948221/ft1_filtered_4FGL_J2148.6+0652_daily_bin85.fits scfile=/scratch/kocevski/948221/ft2_4FGL_J2148.6+0652_daily_bin85.fits outfile=/scratch/kocevski/948221/cmap_261360001_261619201_4FGL_J2148.6+0652_daily_bin85.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948221/ft1_filtered_4FGL_J2148.6+0652_daily_bin85.fits scfile=/scratch/kocevski/948221/ft2_4FGL_J2148.6+0652_daily_bin85.fits outfile=/scratch/kocevski/948221/cmap_HighResolution_261360001_261619201_4FGL_J2148.6+0652_daily_bin85.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    72.235       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97284       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51952E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16681E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.644       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.063       1.0000         .10000E-03   10000.    
    12 'norm      '    19.091       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7823       1.0000         .10000E-03   10000.    
    15 'norm      '    10.099       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6401       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9998       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7381       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2929       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13536       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5754       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .62509       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99905       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=   7206.601     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3625 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1432        23.104       -.30743E-06   -.79833E-04
   2  Prefactor     .10000E-03    18.128        .12511E-05** at limit **
   3  Prefactor     1.7901        205.48        .19032E-05   -.74107E-05
   4  Prefactor     .10000E-03    18.876       -.15831E-05** at limit **
   5  Prefactor     9.3461        17.749        .96529E-06   -.45397E-05
   6  Prefactor     72.152        42.853        .42137E-05    .64451E-03
   7  Prefactor     .97264        5.6519        .85420E-06   -.12251E-03
   8  Prefactor     .50925E-01    4.3390        .56612E-06   -.17766E-03
   9  Prefactor     .10000E-03    1.3663       -.15698E-05** at limit **
  10  Prefactor     44.631        29.905       -.55850E-06    .42995E-03
  11  Prefactor     29.059        40.275       -.43673E-06    .14385E-03
  12  norm          19.091        4.0710        .45840E-07   -.33710E-04
  13  Prefactor     .10000E-03    46.922       -.91457E-07** at limit **
  14  Prefactor     6.7912        26.995        .16746E-06    .11491E-04
  15  norm          10.099        3.3400       -.11753E-07    .28470E-04
  16  norm          4.6387        17.574        .17138E-05   -.54485E-04
  17  Prefactor     .10000E-03    1.8769        .40373E-08** at limit **
  18  Prefactor     6.0000        6.3484       -.70087E-07    .67576E-04
  19  norm          2.7383        1.1841        .34103E-07   -.72665E-05
  20  Prefactor     1.2891        89.456        .23461E-04   -.97387E-04
  21  Prefactor     .10000E-03    3.8008        .14868E-07** at limit **
  22  Prefactor     .10000E-03    28.720        .18164E-06** at limit **
  23  Prefactor     .10000E-03    14.946       -.10051E-06** at limit **
  24  Prefactor     .10000E-03    6.2648       -.12718E-07** at limit **
  25  Prefactor     .13541        .21374        .32928E-07   -.78918E-03
  26  Prefactor     3.5756        5.0730        .26446E-06   -.85734E-05
  27  Normalizat    .62468        .24244       -.41653E-05    .19248E-03
  28  Prefactor     .99915        .11322        .80708E-06    .42189E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14318
  Prefactor  = 0.0001
  Prefactor  = 1.79011
  Prefactor  = 0.0001
  Prefactor  = 9.34612
  Prefactor  = 72.152
  Prefactor  = 0.972639
  Prefactor  = 0.0509246
  Prefactor  = 0.0001
  Prefactor  = 44.6311
  Prefactor  = 29.0585
  norm       = 19.0914
  Prefactor  = 0.0001
  Prefactor  = 6.79122
  norm       = 10.0988
  norm       = 4.63869
  Prefactor  = 0.0001
  Prefactor  = 5.99996
  norm       = 2.73831
  Prefactor  = 1.28907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.135405
  Prefactor  = 3.57556
  Normalizat = 0.624677
  Prefactor  = 0.999154
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.601     FROM HESSE     STATUS=OK           533 CALLS     4158 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1432        23.097        .15003E-03   -1.5173    
   2  Prefactor     .10000E-03    18.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7901        206.58        .32102E-03   -1.5440    
   4  Prefactor     .10000E-03    18.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3461        17.721        .13120E-03   -1.5096    
   6  Prefactor     72.152        43.909        .47236E-04   -1.4007    
   7  Prefactor     .97264        5.6805        .37597E-03   -1.5511    
   8  Prefactor     .50925E-01    4.7535        .53775E-01   -1.5663    
   9  Prefactor     .10000E-03    2.4183        .18254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.631        29.280        .60003E-04   -1.4371    
  11  Prefactor     29.059        40.073        .74316E-04   -1.4629    
  12  norm          19.091        4.0684        .75767E-04   -1.4834    
  13  Prefactor     .10000E-03    46.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7912        26.933        .15407E-03   -1.5187    
  15  norm          10.099        3.3297        .81561E-04   -1.5072    
  16  norm          4.6387        17.438        .93420E-03   -1.5277    
  17  Prefactor     .10000E-03    1.8785        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0000        6.3453        .16393E-03   -1.5218    
  19  norm          2.7383        1.1822        .58680E-04   -1.5377    
  20  Prefactor     1.2891        91.475        .19463E-02   -1.5481    
  21  Prefactor     .10000E-03    3.8028        .16163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.3047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .13541        .19737        .46583E-03   -1.5634    
  26  Prefactor     3.5756        5.0575        .21373E-03   -1.5330    
  27  Normalizat    .62468        .26984        .40766E-03   -1.0695    
  28  Prefactor     .99915        .13114        .16876E-03   -.92758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0641e-09
Minuit parameter uncertainties:
  1  23.1254
  2  7.02629e-05
  3  38.5965
  4  1.80265e-05
  5  17.7309
  6  43.9286
  7  4.70153
  8  0.983122
  9  6.82608e-05
  10  29.289
  11  40.1103
  12  4.06851
  13  1.15433e-05
  14  26.981
  15  3.32976
  16  17.4568
  17  5.6249e-07
  18  6.34599
  19  1.1822
  20  21.7518
  21  4.2013e-07
  22  8.13261e-05
  23  9.31502e-06
  24  1.43128e-06
  25  0.197375
  26  5.05807
  27  0.270415
  28  0.131181
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  4.639e+00  1.746e+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:  9.992e-01  1.312e-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:  6.247e-01  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948221/likelihoodResults_261360001_261619201_4FGL_J2148.6+0652_daily_bin85.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) = 7206.25496064
delta logL = 0.346478725314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7206.22681873
delta logL = 0.37462063261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7571       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .56966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0186       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=   7206.227     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      303 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7574        3.6483        .79043E-02    .72310E-03
   2  alpha         5.0000        4.4495        .46348    ** at limit **
   3  Normalizat    .56962        .22829        .96024E-01    .59425E-04
   4  Prefactor     1.0186        .11478        .42288E-01    .25672E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75739
  alpha      = 5
  Normalizat = 0.569623
  Prefactor  = 1.01855
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.227     FROM HESSE     STATUS=OK            33 CALLS      336 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7574        2.2052        .13022E-03   -1.5443    
   2  alpha         5.0000        3.7040        .10577        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .56962        .25461        .42552E-03   -1.0929    
   4  Prefactor     1.0186        .12939        .16727E-03   -.92114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29281e-12
Minuit parameter uncertainties:
  1  2.20532
  2  7.83332e-06
  3  0.255135
  4  0.12943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948221': 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) = 7206.2268184
delta logL = 0.374620969588

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.757e+00  2.205e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  7.833e-06  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.019e+00  1.294e-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:  5.696e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 327.163 6.879

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/948221/cmap_HighResolution_261360001_261619201_4FGL_J2148.6+0652_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-27 16:25:36.873706', job_id='948221', GAL2='1.02', fit_tolerance='1e-08', EG2='0.57', EG='0.62', time_epoch_completed='1632785136.87', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.75e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='85' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:25:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 948221: <4FGL_J2148.6+0652_daily_bin85> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin85> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 16:10:12 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:10:25 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:10:25 2021
Terminated at Mon Sep 27 16:25:37 2021
Results reported at Mon Sep 27 16:25:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin85 327.163 6.8791 261360001 261619201 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 :                                   865.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            925 sec.

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

