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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin970
RA = 327.163, Dec = 6.8791
tmin = 490752001, tmax = 491011201
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='954597', job_status='RUN', time_executed='2021-09-27 16:39:52.190218', time_epoch_executed='1632785992.19' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954597/ft1_4FGL_J2148.6+0652_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954597/ft2_4FGL_J2148.6+0652_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954597/ft1_4FGL_J2148.6+0652_daily_bin970.fits outfile=/scratch/kocevski/954597/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin970.fits ra=327.163 dec=6.8791 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.81
user 5.52
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954597/ft1_filtered_4FGL_J2148.6+0652_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/954597/ft2_4FGL_J2148.6+0652_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/954597/ltcube_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.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/954597/ft2_4FGL_J2148.6+0652_daily_bin970.fits
.....................!
real 14.36
user 13.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954597/ft1_filtered_4FGL_J2148.6+0652_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/954597/ft2_4FGL_J2148.6+0652_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/954597/ltcube_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.fits outfile=/scratch/kocevski/954597/expmap_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.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/954597/ltcube_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.fits
.....................!
real 192.40
user 187.26
sys 4.07

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/954597/ft1_filtered_4FGL_J2148.6+0652_daily_bin970.fits scfile=/scratch/kocevski/954597/ft2_4FGL_J2148.6+0652_daily_bin970.fits outfile=/scratch/kocevski/954597/cmap_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=327.163 yref=6.8791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954597/ft1_filtered_4FGL_J2148.6+0652_daily_bin970.fits scfile=/scratch/kocevski/954597/ft2_4FGL_J2148.6+0652_daily_bin970.fits outfile=/scratch/kocevski/954597/cmap_HighResolution_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=327.163 yref=6.8791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.439       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.677       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2553       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.231       1.0000         .10000E-03   10000.    
    12 'norm      '    .62069       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    115.11       1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2147       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2699       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4640       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9247       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.815       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67890       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90446       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=   4407.391     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3561 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.577       -.43478E-06** at limit **
   2  Prefactor     16.440        17.431        .93601E-07    .58931E-05
   3  Prefactor     .10000E-03    19.579        .23709E-05** at limit **
   4  Prefactor     40.668        46.818        .15752E-05    .11240E-04
   5  Prefactor     3.2197        79.527       -.41390E-05   -.88725E-05
   6  Prefactor     .10000E-03    35.954       -.38588E-06** at limit **
   7  Prefactor     2.4466        6.5112        .42131E-05   -.38364E-04
   8  Prefactor     20.771        14.899       -.69487E-06   -.50691E-04
   9  Prefactor     2.1384        2.5690       -.37919E-06   -.15721E-03
  10  Prefactor     5.4750        28.218        .11069E-05    .59337E-05
  11  Prefactor     11.112        65.810        .99732E-05    .70071E-05
  12  norm          .62193        4.0506        .29184E-06   -.10068E-03
  13  Prefactor     .10000E-03    50.150        .22150E-06** at limit **
  14  Prefactor     115.17        86.123       -.36350E-05   -.23558E-04
  15  norm          .10000E-03    2.5393        .90008E-06** at limit **
  16  norm          2.2326        81.507       -.23944E-05   -.25926E-04
  17  Prefactor     .10000E-03    4.9254        .54995E-06** at limit **
  18  Prefactor     .10000E-03    5.3583        .14123E-06** at limit **
  19  norm          2.2147        1.8721        .63011E-09   -.21737E-04
  20  Prefactor     .10000E-03    11.924        .58079E-07** at limit **
  21  Prefactor     9.3499        28.534       -.35041E-05    .11969E-04
  22  Prefactor     .10000E-03    20.620       -.12078E-05** at limit **
  23  Prefactor     2.1635        283.52        .92554E-05   -.20488E-05
  24  Prefactor     5.4386        59.358       -.33952E-05   -.76065E-05
  25  Prefactor     4.9250        1.2471        .33917E-07   -.20726E-03
  26  Prefactor     17.811        23.114       -.36687E-06   -.88544E-07
  27  Normalizat    .67907        .32154        .25873E-06   -.44046E-04
  28  Prefactor     .90448        .13560        .12041E-06   -.42288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.4396
  Prefactor  = 0.0001
  Prefactor  = 40.6685
  Prefactor  = 3.21975
  Prefactor  = 0.0001
  Prefactor  = 2.44662
  Prefactor  = 20.771
  Prefactor  = 2.13839
  Prefactor  = 5.47499
  Prefactor  = 11.1122
  norm       = 0.621926
  Prefactor  = 0.0001
  Prefactor  = 115.173
  norm       = 0.0001
  norm       = 2.2326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21468
  Prefactor  = 0.0001
  Prefactor  = 9.34985
  Prefactor  = 0.0001
  Prefactor  = 2.16355
  Prefactor  = 5.43859
  Prefactor  = 4.92499
  Prefactor  = 17.8115
  Normalizat = 0.679068
  Prefactor  = 0.904481
 **********
 **   18 **HESSE 
 **********

 FCN=   4407.391     FROM HESSE     STATUS=OK           531 CALLS     4092 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.440        17.427        .98783E-04   -1.4897    
   3  Prefactor     .10000E-03    19.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.668        46.861        .62850E-04   -1.4432    
   5  Prefactor     3.2197        77.966        .22447E-03   -1.5349    
   6  Prefactor     .10000E-03    36.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4466        6.5402        .12998E-02   -1.5395    
   8  Prefactor     20.771        14.803        .87881E-04   -1.4796    
   9  Prefactor     2.1384        2.5444        .10724E-03   -1.5415    
  10  Prefactor     5.4750        28.051        .17167E-03   -1.5240    
  11  Prefactor     11.112        65.766        .11954E-03   -1.5041    
  12  norm          .62193        7.2179        .24915E-02   -1.5550    
  13  Prefactor     .10000E-03    50.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     115.17        84.285        .18749E-03   -1.3557    
  15  norm          .10000E-03    4.1629        .19766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2326        75.316        .27306E-03   -1.5409    
  17  Prefactor     .10000E-03    4.9487        .14393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3632        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2147        1.8660        .80975E-04   -1.5410    
  20  Prefactor     .10000E-03    11.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.3499        28.348        .13085E-03   -1.5096    
  22  Prefactor     .10000E-03    20.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1635        285.77        .27259E-03   -1.5414    
  24  Prefactor     5.4386        59.926        .17190E-03   -1.5242    
  25  Prefactor     4.9250        1.2582        .32689E-04   -1.5264    
  26  Prefactor     17.811        23.161        .94892E-04   -1.4864    
  27  Normalizat    .67907        .36678        .40303E-03   -1.0473    
  28  Prefactor     .90448        .16109        .16633E-03   -.95985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78381e-08
Minuit parameter uncertainties:
  1  1.80017e-05
  2  17.4329
  3  1.16493e-05
  4  46.9033
  5  31.7339
  6  0.000105319
  7  6.54214
  8  14.8051
  9  2.54454
  10  24.8037
  11  54.1564
  12  4.23776
  13  1.19846e-05
  14  84.3728
  15  4.99775e-05
  16  25.9696
  17  4.16236e-05
  18  1.13794e-05
  19  1.86608
  20  5.7077e-06
  21  28.3884
  22  0.000150213
  23  49.9745
  24  36.1519
  25  1.25817
  26  23.1723
  27  0.36811
  28  0.161172
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.233e+00  2.597e+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.045e-01  1.612e-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.791e-01  3.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/954597/likelihoodResults_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.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) = 4407.30336488
delta logL = 0.0878740906064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4407.29727191
delta logL = 0.0939670631305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0230       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6600       1.0000          .0000       5.0000    
     3 'Normalizat'    .65180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91162       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=   4407.297     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      310 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0257        16.041        .17942E-03    .23888E-04
   2  alpha         3.6618        3.7017        .47675E-02   -.42923E-07
   3  Normalizat    .65154        .34014        .41078E-03    .42261E-04
   4  Prefactor     .91167        .15951        .16570E-03   -.16213E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.02572
  alpha      = 3.66184
  Normalizat = 0.651536
  Prefactor  = 0.911671
 **********
 **   18 **HESSE 
 **********

 FCN=   4407.297     FROM HESSE     STATUS=OK            23 CALLS      333 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0257        15.719        .71769E-05   -1.5260    
   2  alpha         3.6618        1.8419        .19070E-03    .48334    
   3  Normalizat    .65154        .34034        .16431E-04   -1.0584    
   4  Prefactor     .91167        .15961        .33139E-04   -.95734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07269e-10
Minuit parameter uncertainties:
  1  15.7315
  2  2.17561
  3  0.341448
  4  0.159692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954597': 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) = 4407.29727069
delta logL = 0.0939682793751

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.026e+00  1.573e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.662e+00  2.176e+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:  9.117e-01  1.597e-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.515e-01  3.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/954597/cmap_HighResolution_490752001_491011201_4FGL_J2148.6+0652_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-05', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-27 16:50:57.543959', job_id='954597', GAL2='0.91', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1632786657.54', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.40e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='970' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 954597: <4FGL_J2148.6+0652_daily_bin970> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin970 327.163 6.8791 490752001 491011201 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 :                                   659.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            941 sec.

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

