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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin724
RA = 327.163, Dec = 6.8791
tmin = 426988801, tmax = 427248001
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='953189', job_status='RUN', time_executed='2021-09-27 16:30:54.377752', time_epoch_executed='1632785454.38' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953189

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953189/ft1_4FGL_J2148.6+0652_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953189/ft2_4FGL_J2148.6+0652_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953189/ft1_4FGL_J2148.6+0652_daily_bin724.fits outfile=/scratch/kocevski/953189/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin724.fits ra=327.163 dec=6.8791 rad=12.0 tmin=426988801.0 tmax=427248001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.80
user 4.56
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953189/ft2_4FGL_J2148.6+0652_daily_bin724.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/953189/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/953189/ft1_filtered_4FGL_J2148.6+0652_daily_bin724.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.48
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953189/ft1_filtered_4FGL_J2148.6+0652_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/953189/ft2_4FGL_J2148.6+0652_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/953189/ltcube_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.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/953189/ft2_4FGL_J2148.6+0652_daily_bin724.fits
.....................!
real 13.91
user 13.57
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953189/ft1_filtered_4FGL_J2148.6+0652_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/953189/ft2_4FGL_J2148.6+0652_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/953189/ltcube_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.fits outfile=/scratch/kocevski/953189/expmap_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.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/953189/ltcube_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.fits
.....................!
real 158.67
user 153.39
sys 4.65

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/953189/ft1_filtered_4FGL_J2148.6+0652_daily_bin724.fits scfile=/scratch/kocevski/953189/ft2_4FGL_J2148.6+0652_daily_bin724.fits outfile=/scratch/kocevski/953189/cmap_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953189/ft1_filtered_4FGL_J2148.6+0652_daily_bin724.fits scfile=/scratch/kocevski/953189/ft2_4FGL_J2148.6+0652_daily_bin724.fits outfile=/scratch/kocevski/953189/cmap_HighResolution_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.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.49
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0134       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4546       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.717       1.0000         .10000E-03   10000.    
    12 'norm      '    14.018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11897       1.0000         .10000E-03   10000.    
    19 'norm      '    .90176       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22949E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.127       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.737       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .56236       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4135       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .65814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6381.073     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     2929 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    23.284        .23155E-04** at limit **
   2  Prefactor     .10000E-03    8.3646        .40060E-06** at limit **
   3  Prefactor     5.0107        1.0240        .70833E-07    .19910E-03
   4  Prefactor     38.765        2.3534       -.12608E-05    .32646E-02
   5  Prefactor     .10000E-03    10.214       -.47739E-06** at limit **
   6  Prefactor     14.653        3.4396        .16877E-05   -.95579E-03
   7  Prefactor     11.391        6.1625        .65351E-05    .45271E-02
   8  Prefactor     3.4523        2.9019        .60459E-05    .12950E-02
   9  Prefactor     1.9768        2.3358        .17437E-06    .18198E-03
  10  Prefactor     .10000E-03    14.263       -.83052E-05** at limit **
  11  Prefactor     16.764        3.1933       -.57098E-07    .11060E-02
  12  norm          14.016        4.5212       -.65178E-06   -.66845E-03
  13  Prefactor     .10014E-03    27.950       -.92977E-05** at limit **
  14  Prefactor     .10031E-03    16.285       -.14685E-04** at limit **
  15  norm          .10000E-03    .49894       -.59899E-08** at limit **
  16  norm          .10000E-03    4.5942       -.12984E-06** at limit **
  17  Prefactor     5.5733        7.3695       -.36904E-05   -.40588E-02
  18  Prefactor     .10022E-03    451.03       -.46248E-04** at limit **
  19  norm          .90164        .87172       -.74058E-08   -.58757E-03
  20  Prefactor     22.197        1.0469       -.15747E-06   -.41903E-03
  21  Prefactor     .10016E-03    59.248        .18929E-04** at limit **
  22  Prefactor     21.182        4.8343       -.16999E-05    .34506E-02
  23  Prefactor     .10002E-03    14.202       -.65599E-05** at limit **
  24  Prefactor     21.731        1.1757        .15793E-06   -.40390E-03
  25  Prefactor     .56232        .43476        .62126E-07    .13216E-03
  26  Prefactor     .10000E-03    6.9600       -.15482E-06** at limit **
  27  Normalizat    1.4136        .29358       -.27706E-05    .27554E-03
  28  Prefactor     .65824        .13249        .31541E-06    .18170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100339
  Prefactor  = 0.0001
  Prefactor  = 5.01075
  Prefactor  = 38.7647
  Prefactor  = 0.0001
  Prefactor  = 14.6531
  Prefactor  = 11.3911
  Prefactor  = 3.4523
  Prefactor  = 1.97684
  Prefactor  = 0.000100001
  Prefactor  = 16.7639
  norm       = 14.016
  Prefactor  = 0.000100137
  Prefactor  = 0.000100308
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.57334
  Prefactor  = 0.000100222
  norm       = 0.901638
  Prefactor  = 22.1967
  Prefactor  = 0.000100157
  Prefactor  = 21.1818
  Prefactor  = 0.000100016
  Prefactor  = 21.7311
  Prefactor  = 0.562323
  Prefactor  = 0.000100001
  Normalizat = 1.4136
  Prefactor  = 0.658244
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.073     FROM HESSE     STATUS=OK           581 CALLS     3510 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    34.246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0107        13.703        .44899E-02   -1.5260    
   4  Prefactor     38.765        54.090        .16091E-02   -1.4462    
   5  Prefactor     .10000E-03    10.197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.653        47.990        .26201E-02   -1.4942    
   7  Prefactor     11.391        8.1188        .29670E-02   -1.5033    
   8  Prefactor     3.4523        10.908        .54398E-02   -1.5336    
   9  Prefactor     1.9768        2.7024        .73626E-02   -1.5427    
  10  Prefactor     .10000E-03    43.348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.764        37.483        .24490E-02   -1.4889    
  12  norm          14.016        4.6280        .26745E-02   -1.4959    
  13  Prefactor     .10014E-03    30.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10031E-03    47.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .49794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5733        9.3672        .42537E-02   -1.5236    
  18  Prefactor     .10022E-03    11.463        .96013E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .90164        .84371        .12814E-01   -1.5518    
  20  Prefactor     22.197        19.569        .21252E-02   -1.4765    
  21  Prefactor     .10016E-03    63.148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.182        25.350        .21785E-02   -1.4787    
  23  Prefactor     .10002E-03    42.867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.731        29.667        .21478E-02   -1.4775    
  25  Prefactor     .56232        .50251        .10111E-01   -1.5558    
  26  Prefactor     .10000E-03    6.9499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4136        .25703        .68182E-01   -.80236    
  28  Prefactor     .65824        .11082        .41841E-01   -1.0519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19395e-07
Minuit parameter uncertainties:
  1  0.00682142
  2  1.19726e-05
  3  13.7119
  4  54.1583
  5  0.000106645
  6  48.1169
  7  8.11963
  8  10.914
  9  2.70258
  10  0.000295477
  11  37.5356
  12  4.62807
  13  0.0040849
  14  0.00762916
  15  4.51049e-07
  16  6.54161e-05
  17  9.36963
  18  0.00318992
  19  0.843726
  20  19.5747
  21  0.00629704
  22  25.3629
  23  0.00164234
  24  29.6874
  25  0.502518
  26  0.000119903
  27  0.257265
  28  0.110852
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  6.542e-05  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:  6.582e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.414e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.163 6.879
Photon Flux Upper Limit: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953189/likelihoodResults_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.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): 102
logL (Free Index) = 6381.07411926
delta logL = -0.00102952492398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6381.07308969
delta logL = 4.65242919745e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6467       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65824       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=   6381.073     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      237 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    242.32        .16795E-01** at limit **
   2  alpha         1.9591        3.9827        .16497       -.82698E-09
   3  Normalizat    1.4136        .42318E-01    .30164E-03    .45831E-04
   4  Prefactor     .65825        .19654E-01    .19603E-03    .84382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95907
  Normalizat = 1.41359
  Prefactor  = 0.658245
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.073     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4440        .18166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9591        4.0196        .65986E-02   -.21810    
   3  Normalizat    1.4136        .28402        .12066E-04   -.80236    
   4  Prefactor     .65825        .13199        .78412E-05   -1.0519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53751e-12
Minuit parameter uncertainties:
  1  4.10387e-07
  2  363.601
  3  0.284338
  4  0.132055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953189': 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) = 6381.07308805
delta logL = 1.68277347257e-06

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  4.104e-07  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.959e+00  3.636e+02  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:  6.582e-01  1.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.414e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.163 6.879

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953189/cmap_HighResolution_426988801_427248001_4FGL_J2148.6+0652_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-05', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-27 16:41:27.330780', job_id='953189', GAL2='0.66', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632786087.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='724' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:41:27 PDT 2021


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

Job <4FGL_J2148.6+0652_daily_bin724> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 16:30:15 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:30:41 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:30:41 2021
Terminated at Mon Sep 27 16:41:28 2021
Results reported at Mon Sep 27 16:41:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin724 327.163 6.8791 426988801 427248001 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 :                                   628.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            673 sec.

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

