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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin116
RA = 327.163, Dec = 6.8791
tmin = 269395201, tmax = 269654401
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='948266', job_status='RUN', time_executed='2021-09-27 16:13:19.052291', time_epoch_executed='1632784399.05' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948266/ft1_4FGL_J2148.6+0652_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948266/ft2_4FGL_J2148.6+0652_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948266/ft1_4FGL_J2148.6+0652_daily_bin116.fits outfile=/scratch/kocevski/948266/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin116.fits ra=327.163 dec=6.8791 rad=12.0 tmin=269395201.0 tmax=269654401.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.49
user 1.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948266/ft2_4FGL_J2148.6+0652_daily_bin116.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/948266/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin116.fits evtable="EVENTS" outfile="/scratch/kocevski/948266/ft1_filtered_4FGL_J2148.6+0652_daily_bin116.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.44
user 0.29
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948266/ft1_filtered_4FGL_J2148.6+0652_daily_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/948266/ft2_4FGL_J2148.6+0652_daily_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/948266/ltcube_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.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/948266/ft2_4FGL_J2148.6+0652_daily_bin116.fits
.....................!
real 11.27
user 10.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948266/ft1_filtered_4FGL_J2148.6+0652_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/948266/ft2_4FGL_J2148.6+0652_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/948266/ltcube_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.fits outfile=/scratch/kocevski/948266/expmap_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.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/948266/ltcube_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.fits
.....................!
real 155.36
user 151.26
sys 3.78

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/948266/ft1_filtered_4FGL_J2148.6+0652_daily_bin116.fits scfile=/scratch/kocevski/948266/ft2_4FGL_J2148.6+0652_daily_bin116.fits outfile=/scratch/kocevski/948266/cmap_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948266/ft1_filtered_4FGL_J2148.6+0652_daily_bin116.fits scfile=/scratch/kocevski/948266/ft2_4FGL_J2148.6+0652_daily_bin116.fits outfile=/scratch/kocevski/948266/cmap_HighResolution_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.725       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1636       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.1997       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0921       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8216       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.205       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.365       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .24402       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .88873       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84041       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=   8995.683     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3606 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.480        21.400        .67304E-07    .29571E-04
   2  Prefactor     .10000E-03    14.620        .19950E-06** at limit **
   3  Prefactor     37.640        30.002        .70412E-07    .44337E-04
   4  Prefactor     50.618        56.377        .59058E-05    .34171E-03
   5  Prefactor     32.026        23.749       -.22395E-06    .28596E-04
   6  Prefactor     .10000E-03    40.519       -.12457E-05** at limit **
   7  Prefactor     .17773        7.7347       -.34549E-05    .99302E-03
   8  Prefactor     .10000E-03    5.2298       -.28061E-07** at limit **
   9  Prefactor     .54761        1.8850       -.83357E-06   -.41199E-03
  10  Prefactor     2.1654        132.42        .68684E-05    .82801E-04
  11  Prefactor     .10000E-03    16.220       -.61150E-06** at limit **
  12  norm          3.0151        2.0811        .38003E-07    .12173E-03
  13  Prefactor     .10000E-03    26.849        .13394E-05** at limit **
  14  Prefactor     .10000E-03    67.372        .25660E-05** at limit **
  15  norm          9.1999        2.9746        .52189E-07    .63153E-03
  16  norm          7.0891        14.509       -.10337E-06    .21574E-04
  17  Prefactor     3.9987        6.6574        .70393E-06    .50188E-03
  18  Prefactor     .10000E-03    2.5780        .40387E-07** at limit **
  19  norm          4.8215        1.3211        .98749E-08    .49838E-04
  20  Prefactor     26.201        19.675        .29345E-07    .19774E-04
  21  Prefactor     24.228        16.954        .64931E-07    .15326E-04
  22  Prefactor     .10000E-03    6.9612        .25152E-07** at limit **
  23  Prefactor     18.361        23.828        .18532E-06    .12533E-04
  24  Prefactor     .10000E-03    4.7469        .57745E-08** at limit **
  25  Prefactor     .24399        .17874        .69636E-08    .13201E-03
  26  Prefactor     .10000E-03    2.6220        .35879E-09** at limit **
  27  Normalizat    .88879        .21399        .29174E-06    .28959E-03
  28  Prefactor     .84042        .96117E-01   -.46447E-06    .37599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4802
  Prefactor  = 0.0001
  Prefactor  = 37.6402
  Prefactor  = 50.6176
  Prefactor  = 32.0258
  Prefactor  = 0.0001
  Prefactor  = 0.177729
  Prefactor  = 0.0001
  Prefactor  = 0.547611
  Prefactor  = 2.16539
  Prefactor  = 0.0001
  norm       = 3.01507
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 9.19994
  norm       = 7.08913
  Prefactor  = 3.99873
  Prefactor  = 0.0001
  norm       = 4.82153
  Prefactor  = 26.201
  Prefactor  = 24.2282
  Prefactor  = 0.0001
  Prefactor  = 18.361
  Prefactor  = 0.0001
  Prefactor  = 0.243988
  Prefactor  = 0.0001
  Normalizat = 0.888795
  Prefactor  = 0.840421
 **********
 **   18 **HESSE 
 **********

 FCN=   8995.683     FROM HESSE     STATUS=OK           527 CALLS     4133 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.480        21.381        .71409E-04   -1.4585    
   2  Prefactor     .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.640        29.981        .65329E-04   -1.4480    
   4  Prefactor     50.618        57.835        .28154E-03   -1.4284    
   5  Prefactor     32.026        23.767        .70803E-04   -1.4576    
   6  Prefactor     .10000E-03    40.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17773        16.198        .31707E-02   -1.5624    
   8  Prefactor     .10000E-03    5.3170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .54761        1.8555        .21212E-03   -1.5560    
  10  Prefactor     2.1654        126.88        .28001E-03   -1.5414    
  11  Prefactor     .10000E-03    16.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0151        2.0802        .10920E-03   -1.5361    
  13  Prefactor     .10000E-03    26.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.1999        2.9816        .42364E-03   -1.5101    
  16  norm          7.0891        14.475        .15063E-03   -1.5175    
  17  Prefactor     3.9987        6.7968        .10082E-02   -1.5308    
  18  Prefactor     .10000E-03    2.5831        .14870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8215        1.3215        .54990E-04   -1.5269    
  20  Prefactor     26.201        19.677        .78256E-04   -1.4684    
  21  Prefactor     24.228        16.976        .81367E-04   -1.4723    
  22  Prefactor     .10000E-03    6.9726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.361        23.836        .93460E-04   -1.4851    
  24  Prefactor     .10000E-03    4.7714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .24399        .17832        .33063E-04   -1.5609    
  26  Prefactor     .10000E-03    2.6246        .14998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .88879        .24997        .35108E-03   -.96855    
  28  Prefactor     .84042        .11404        .17822E-03   -.98255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80496e-09
Minuit parameter uncertainties:
  1  21.3864
  2  2.73951e-05
  3  29.9934
  4  57.899
  5  23.7737
  6  0.000262807
  7  3.39339
  8  2.36438e-05
  9  1.85571
  10  33.2237
  11  7.30631e-05
  12  2.08022
  13  0.000246055
  14  0.000790804
  15  2.98167
  16  14.4824
  17  6.79815
  18  2.85074e-06
  19  1.32149
  20  19.682
  21  16.9796
  22  3.65154e-06
  23  23.8487
  24  2.74489e-06
  25  0.178325
  26  4.84606e-07
  27  0.250296
  28  0.11407
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  7.089e+00  1.448e+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.404e-01  1.141e-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:  8.888e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948266/likelihoodResults_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.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) = 8995.25775298
delta logL = 0.425667612484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8995.10991556
delta logL = 0.573505025986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8991       1.0000         .10000E-03   10000.    
     2 'alpha     '    .80708       1.0000          .0000       5.0000    
     3 'Normalizat'    .91082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83223       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=   8995.110     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8991        3.8016        .59663E-02    .37078E-02
   2  alpha         .80711        .75200        .50000       -.54407E-04
   3  Normalizat    .91087        .18968        .78448E-01   -.10074E-03
   4  Prefactor     .83222        .94446E-01    .44135E-01   -.21388E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89908
  alpha      = 0.807109
  Normalizat = 0.91087
  Prefactor  = 0.832219
 **********
 **   18 **HESSE 
 **********

 FCN=   8995.110     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8991        5.0414        .19971E-03   -1.5367    
   2  alpha         .80711        .92658        .37673E-01   -.74389    
   3  Normalizat    .91087        .22377        .34723E-03   -.96079    
   4  Prefactor     .83222        .11163        .17895E-03   -.98551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14613e-08
Minuit parameter uncertainties:
  1  5.04212
  2  0.971047
  3  0.223997
  4  0.111658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948266': 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) = 8995.10991551
delta logL = 0.573505079721

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.899e+00  5.042e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  8.071e-01  9.710e-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.322e-01  1.117e-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:  9.109e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 327.163 6.879
Photon Index (Free Index): 0.81 +/- 0.97
Photon Flux (Free Index): 4.30e-09 +/- 5.91e-09
Energy Flux (Free Index): 8.59e-06 +/- 1.47e-05

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/948266/cmap_HighResolution_269395201_269654401_4FGL_J2148.6+0652_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', comment='SUCCESS', energy_flux2='8.59e-06', dlogl='5.74e-01', photon_flux2='4.30e-09', job_status='DONE', time_completed='2021-09-27 16:26:49.022879', photon_index_error2='0.97', photon_index2='0.81', ts='0.34', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.47e-05', EG='0.89', time_epoch_completed='1632785209.02', return_code='0', job_id='948266', GAL2='0.83', EG2='0.91', return_code2='0', photon_flux_error2='5.91e-09', ts2='1.48', photon_index='2.66' WHERE bin_id='116' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:26:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 948266: <4FGL_J2148.6+0652_daily_bin116> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin116 327.163 6.8791 269395201 269654401 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 :                                   808.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            993 sec.

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

