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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin49
RA = 327.163, Dec = 6.8791
tmin = 252028801, tmax = 252288001
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='947031', job_status='RUN', time_executed='2021-09-27 16:08:27.299847', time_epoch_executed='1632784107.3' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947031/ft1_4FGL_J2148.6+0652_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947031/ft2_4FGL_J2148.6+0652_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947031/ft1_4FGL_J2148.6+0652_daily_bin49.fits outfile=/scratch/kocevski/947031/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin49.fits ra=327.163 dec=6.8791 rad=12.0 tmin=252028801.0 tmax=252288001.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.43
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947031/ft2_4FGL_J2148.6+0652_daily_bin49.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/947031/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/947031/ft1_filtered_4FGL_J2148.6+0652_daily_bin49.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947031/ft1_filtered_4FGL_J2148.6+0652_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/947031/ft2_4FGL_J2148.6+0652_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/947031/ltcube_252028801_252288001_4FGL_J2148.6+0652_daily_bin49.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/947031/ft2_4FGL_J2148.6+0652_daily_bin49.fits
.....................!
real 15.68
user 15.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947031/ft1_filtered_4FGL_J2148.6+0652_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/947031/ft2_4FGL_J2148.6+0652_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/947031/ltcube_252028801_252288001_4FGL_J2148.6+0652_daily_bin49.fits outfile=/scratch/kocevski/947031/expmap_252028801_252288001_4FGL_J2148.6+0652_daily_bin49.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/947031/ltcube_252028801_252288001_4FGL_J2148.6+0652_daily_bin49.fits
.....................!
real 192.29
user 186.59
sys 5.28

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/947031/ft1_filtered_4FGL_J2148.6+0652_daily_bin49.fits scfile=/scratch/kocevski/947031/ft2_4FGL_J2148.6+0652_daily_bin49.fits outfile=/scratch/kocevski/947031/cmap_252028801_252288001_4FGL_J2148.6+0652_daily_bin49.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.53
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.315       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.824       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7675       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16184E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.4929       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.515       1.0000         .10000E-03   10000.    
    16 'norm      '    31.157       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.293       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1796       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.808       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    109.85       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .83756       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .64219       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82580       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=   6575.636     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3510 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.314        22.208        .15622E-07    .33325E-04
   2  Prefactor     .10000E-03    12.930       -.28278E-05** at limit **
   3  Prefactor     .10000E-03    8.3731        .20797E-05** at limit **
   4  Prefactor     39.740        54.074       -.22301E-05   -.43656E-04
   5  Prefactor     .10000E-03    8.6463       -.23008E-05** at limit **
   6  Prefactor     26.820        41.374       -.15305E-05   -.42649E-04
   7  Prefactor     .10000E-03    6.2212       -.24482E-06** at limit **
   8  Prefactor     5.7663        5.1534        .95139E-06   -.14316E-02
   9  Prefactor     2.3063        2.4674        .15337E-06   -.14195E-03
  10  Prefactor     .10000E-03    11.765        .27948E-05** at limit **
  11  Prefactor     .10000E-03    146.17       -.77120E-06** at limit **
  12  norm          9.4928        3.4275       -.75554E-07   -.28748E-04
  13  Prefactor     .10000E-03    28.479       -.11217E-05** at limit **
  14  Prefactor     .10000E-03    50.003        .92666E-06** at limit **
  15  norm          10.516        3.2204       -.18592E-07   -.38543E-05
  16  norm          31.157        20.468       -.54456E-07   -.94718E-05
  17  Prefactor     .10000E-03    3.9934        .89562E-08** at limit **
  18  Prefactor     31.293        13.736       -.50549E-08   -.62980E-05
  19  norm          1.1796        .93445       -.88919E-08   -.93874E-04
  20  Prefactor     .10000E-03    7.1946       -.18174E-06** at limit **
  21  Prefactor     49.808        20.316       -.10064E-06   -.12154E-04
  22  Prefactor     .10000E-03    10.466       -.24211E-06** at limit **
  23  Prefactor     109.84        42.182       -.11789E-05   -.10053E-03
  24  Prefactor     .10000E-03    19.069        .12503E-05** at limit **
  25  Prefactor     .83766        .31583       -.12858E-08   -.25956E-03
  26  Prefactor     .10000E-03    4.0503        .22380E-08** at limit **
  27  Normalizat    .64237        .24374        .89096E-06   -.19145E-04
  28  Prefactor     .82573        .11059       -.15833E-06    .33188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.7402
  Prefactor  = 0.0001
  Prefactor  = 26.8203
  Prefactor  = 0.0001
  Prefactor  = 5.76633
  Prefactor  = 2.30626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5156
  norm       = 31.1567
  Prefactor  = 0.0001
  Prefactor  = 31.2928
  norm       = 1.17956
  Prefactor  = 0.0001
  Prefactor  = 49.8082
  Prefactor  = 0.0001
  Prefactor  = 109.844
  Prefactor  = 0.0001
  Prefactor  = 0.83766
  Prefactor  = 0.0001
  Normalizat = 0.642373
  Prefactor  = 0.825734
 **********
 **   18 **HESSE 
 **********

 FCN=   6575.636     FROM HESSE     STATUS=OK           517 CALLS     4027 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.314        22.211        .99156E-04   -1.4900    
   2  Prefactor     .10000E-03    13.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.740        54.391        .63580E-04   -1.4446    
   5  Prefactor     .10000E-03    8.7543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.820        41.207        .77349E-04   -1.4672    
   7  Prefactor     .10000E-03    6.4312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7663        8.0325        .83621E-03   -1.5228    
   9  Prefactor     2.3063        2.4352        .11090E-03   -1.5404    
  10  Prefactor     .10000E-03    11.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    151.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.4928        3.4376        .85667E-04   -1.5092    
  13  Prefactor     .10000E-03    28.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.516        3.2216        .74759E-04   -1.5059    
  16  norm          31.157        20.490        .71782E-04   -1.4591    
  17  Prefactor     .10000E-03    4.0314        .15820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.293        13.741        .71627E-04   -1.4589    
  19  norm          1.1796        .92023        .67170E-04   -1.5491    
  20  Prefactor     .10000E-03    7.2007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     49.808        20.326        .56822E-04   -1.4295    
  22  Prefactor     .10000E-03    10.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     109.84        42.527        .38377E-04   -1.3608    
  24  Prefactor     .10000E-03    19.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .83766        .31459        .26830E-04   -1.5525    
  26  Prefactor     .10000E-03    4.0549        .15938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .64237        .27708        .39002E-03   -1.0621    
  28  Prefactor     .82573        .12759        .17249E-03   -.98787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47485e-09
Minuit parameter uncertainties:
  1  22.2224
  2  0.000141252
  3  8.15843e-05
  4  54.459
  5  9.37768e-05
  6  41.2508
  7  1.77777e-05
  8  8.03397
  9  2.43533
  10  0.000131811
  11  0.000113601
  12  3.43765
  13  8.23294e-05
  14  6.89892e-05
  15  3.22161
  16  20.4946
  17  2.03357e-06
  18  13.7428
  19  0.920238
  20  2.99544e-06
  21  20.3285
  22  1.07364e-05
  23  42.5386
  24  6.15704e-05
  25  0.314594
  26  2.14071e-07
  27  0.277687
  28  0.12764
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  3.116e+01  2.049e+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:  8.257e-01  1.276e-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.424e-01  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.17e-05

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) = 6575.63591204
delta logL = 0.000382053720386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6575.63588457
delta logL = 0.000409523314374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.195       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6351       1.0000          .0000       5.0000    
     3 'Normalizat'    .64391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82529       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=   6575.636     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      259 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.193        20.181        .71739E-04    .16164E-04
   2  alpha         2.6349        .78191        .21514E-01    .53562E-04
   3  Normalizat    .64391        .25869        .38959E-03   -.14766E-04
   4  Prefactor     .82526        .12700        .17254E-03    .36964E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.1929
  alpha      = 2.63491
  Normalizat = 0.643913
  Prefactor  = 0.825262
 **********
 **   18 **HESSE 
 **********

 FCN=   6575.636     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.193        20.132        .28695E-05   -1.4590    
   2  alpha         2.6349        .77939        .43028E-02    .53991E-01
   3  Normalizat    .64391        .25888        .15584E-04   -1.0615    
   4  Prefactor     .82526        .12707        .69016E-05   -.98804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05448e-11
Minuit parameter uncertainties:
  1  20.1359
  2  0.792646
  3  0.25937
  4  0.127113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947031': 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) = 6575.6358844
delta logL = 0.000409692880567

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  3.119e+01  2.014e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.635e+00  7.926e-01  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.253e-01  1.271e-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.439e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.63 +/- 0.79
Photon Flux (Free Index): 7.22e-08 +/- 6.37e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/947031/cmap_HighResolution_252028801_252288001_4FGL_J2148.6+0652_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='1.78e-05', photon_flux_error='4.83e-08', dlogl='4.10e-04', energy_flux='1.79e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-27 16:20:17.064114', photon_index_error2='0.79', photon_index2='2.63', ts='4.69', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.64', time_epoch_completed='1632784817.06', return_code='0', job_id='947031', GAL2='0.83', EG2='0.64', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='6.37e-08', ts2='4.71', photon_index='2.66' WHERE bin_id='49' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:20:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 947031: <4FGL_J2148.6+0652_daily_bin49> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin49> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 16:05:25 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:08:03 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:08:03 2021
Terminated at Mon Sep 27 16:20:17 2021
Results reported at Mon Sep 27 16:20:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin49 327.163 6.8791 252028801 252288001 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 :                                   706.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            892 sec.

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

