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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin663
RA = 327.163, Dec = 6.8791
tmin = 411177601, tmax = 411436801
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='952326', job_status='RUN', time_executed='2021-09-27 16:32:06.724892', time_epoch_executed='1632785526.72' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952326

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952326/ft1_4FGL_J2148.6+0652_daily_bin663.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952326/ft2_4FGL_J2148.6+0652_daily_bin663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952326/ft1_4FGL_J2148.6+0652_daily_bin663.fits outfile=/scratch/kocevski/952326/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin663.fits ra=327.163 dec=6.8791 rad=12.0 tmin=411177601.0 tmax=411436801.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 6.67
user 6.27
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952326/ft1_filtered_4FGL_J2148.6+0652_daily_bin663.fits" evtable="EVENTS" scfile=/scratch/kocevski/952326/ft2_4FGL_J2148.6+0652_daily_bin663.fits sctable="SC_DATA" outfile=/scratch/kocevski/952326/ltcube_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.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/952326/ft2_4FGL_J2148.6+0652_daily_bin663.fits
.....................!
real 14.04
user 13.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952326/ft1_filtered_4FGL_J2148.6+0652_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/952326/ft2_4FGL_J2148.6+0652_daily_bin663.fits sctable="SC_DATA" expcube=/scratch/kocevski/952326/ltcube_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.fits outfile=/scratch/kocevski/952326/expmap_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.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/952326/ltcube_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.fits
.....................!
real 191.70
user 185.57
sys 5.19

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/952326/ft1_filtered_4FGL_J2148.6+0652_daily_bin663.fits scfile=/scratch/kocevski/952326/ft2_4FGL_J2148.6+0652_daily_bin663.fits outfile=/scratch/kocevski/952326/cmap_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.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/952326/ft1_filtered_4FGL_J2148.6+0652_daily_bin663.fits scfile=/scratch/kocevski/952326/ft2_4FGL_J2148.6+0652_daily_bin663.fits outfile=/scratch/kocevski/952326/cmap_HighResolution_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.974       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2233       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.065       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11834E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.5980       1.0000         .10000E-03   10000.    
    16 'norm      '    55.203       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .58402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.366       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3864       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .57850       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0464       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=   2929.956     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3431 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.86        .35895E-04** at limit **
   2  Prefactor     .10000E-03    20.265        .38735E-05** at limit **
   3  Prefactor     .10000E-03    18.308       -.12613E-04** at limit **
   4  Prefactor     .10000E-03    54.598       -.13638E-04** at limit **
   5  Prefactor     32.938        47.304       -.33785E-04   -.26692E-04
   6  Prefactor     .10000E-03    150.77       -.12683E-03** at limit **
   7  Prefactor     2.5299        7.7491       -.15258E-05   -.25161E-03
   8  Prefactor     .10000E-03    10.692       -.99428E-05** at limit **
   9  Prefactor     2.2214        3.4878       -.22431E-06    .95309E-03
  10  Prefactor     .10000E-03    118.40       -.20636E-05** at limit **
  11  Prefactor     .10000E-03    53.297       -.19565E-04** at limit **
  12  norm          12.065        8.1521       -.80536E-06    .19390E-03
  13  Prefactor     .10000E-03    76.004        .60150E-04** at limit **
  14  Prefactor     .10000E-03    107.44        .36170E-04** at limit **
  15  norm          6.5978        5.2795        .80657E-06   -.19097E-03
  16  norm          55.178        50.033       -.19320E-04   -.13986E-03
  17  Prefactor     .10000E-03    10.960        .12956E-04** at limit **
  18  Prefactor     .10000E-03    20.097        .32998E-05** at limit **
  19  norm          .58245        2.9852       -.22126E-05   -.88560E-03
  20  Prefactor     .10000E-03    55.184       -.93383E-05** at limit **
  21  Prefactor     .10000E-03    9.4318        .70277E-06** at limit **
  22  Prefactor     .10000E-03    10.807       -.27201E-05** at limit **
  23  Prefactor     .10000E-03    20.673        .70576E-05** at limit **
  24  Prefactor     25.358        36.742       -.72212E-05    .33879E-05
  25  Prefactor     1.3864        .59684        .85962E-07   -.16975E-03
  26  Prefactor     .10000E-03    5.1823        .37326E-07** at limit **
  27  Normalizat    .57904        .40279        .16684E-04    .14532E-03
  28  Prefactor     1.0462        .18965        .10712E-05    .77064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9376
  Prefactor  = 0.0001
  Prefactor  = 2.5299
  Prefactor  = 0.0001
  Prefactor  = 2.22136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0647
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 6.59778
  norm       = 55.178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.58245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3582
  Prefactor  = 1.38641
  Prefactor  = 0.0001
  Normalizat = 0.579042
  Prefactor  = 1.04618
 **********
 **   18 **HESSE 
 **********

 FCN=   2929.956     FROM HESSE     STATUS=OK           509 CALLS     3940 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.938        47.401        .69782E-04   -1.4560    
   6  Prefactor     .10000E-03    150.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5299        7.7245        .25406E-03   -1.5390    
   8  Prefactor     .10000E-03    10.720        .17279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2214        3.4575        .12080E-03   -1.5410    
  10  Prefactor     .10000E-03    119.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    53.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.065        8.0923        .11533E-03   -1.5013    
  13  Prefactor     .10000E-03    75.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    107.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5978        5.2689        .10246E-03   -1.5194    
  16  norm          55.178        50.107        .53988E-04   -1.4221    
  17  Prefactor     .10000E-03    11.017        .17501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .58245        2.9745        .17271E-03   -1.5555    
  20  Prefactor     .10000E-03    55.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4341        .16237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.813        .17382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.358        36.875        .79538E-04   -1.4700    
  25  Prefactor     1.3864        .60025        .24904E-04   -1.5472    
  26  Prefactor     .10000E-03    5.1828        .12035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .57904        .44305        .44896E-03   -1.0888    
  28  Prefactor     1.0462        .21421        .16844E-03   -.91206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43674e-09
Minuit parameter uncertainties:
  1  0.000529275
  2  7.8734e-06
  3  1.55517e-05
  4  3.60264e-06
  5  47.4548
  6  0.000156778
  7  7.72749
  8  9.5187e-06
  9  3.45782
  10  0.000258508
  11  8.24637e-05
  12  8.093
  13  1.98845e-05
  14  0.00145533
  15  5.26924
  16  50.1454
  17  4.61113e-05
  18  0.000195795
  19  2.63247
  20  0.000130747
  21  2.77236e-05
  22  3.56166e-05
  23  2.86935e-05
  24  36.9079
  25  0.600257
  26  1.40339e-06
  27  0.445797
  28  0.214385
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.518e+01  5.015e+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:  1.046e+00  2.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  5.790e-01  4.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 1.18e-07
Energy Flux (Fixed Index): 3.16e-05 +/- 2.87e-05

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

Saving results to:
/scratch/kocevski/952326/likelihoodResults_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.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) = 2929.95561918
delta logL = 0.000326991105339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2929.95551353
delta logL = 0.00043264277565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    55.895       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6313       1.0000          .0000       5.0000    
     3 'Normalizat'    .58088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0454       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=   2929.956     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      252 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          55.897        55.333        .53655E-04   -.67252E-03
   2  alpha         2.6313        .88689        .15388E-01   -.15388E-03
   3  Normalizat    .58076        .43343        .44832E-03    .36301E-04
   4  Prefactor     1.0454        .21391        .16850E-03    .10173E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 55.897
  alpha      = 2.63126
  Normalizat = 0.580757
  Prefactor  = 1.04543
 **********
 **   18 **HESSE 
 **********

 FCN=   2929.956     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          55.897        54.314        .10731E-04   -1.4211    
   2  alpha         2.6313        .87083        .61551E-03    .52529E-01
   3  Normalizat    .58076        .43362        .17933E-04   -1.0881    
   4  Prefactor     1.0454        .21392        .33699E-04   -.91230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18093e-09
Minuit parameter uncertainties:
  1  54.3627
  2  0.889536
  3  0.43619
  4  0.214097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952326': 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) = 2929.95551348
delta logL = 0.000432691594142

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.590e+01  5.436e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.631e+00  8.895e-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:  1.045e+00  2.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:  5.808e-01  4.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.63 +/- 0.89
Photon Flux (Free Index): 1.29e-07 +/- 1.19e-07
Energy Flux (Free Index): 3.18e-05 +/- 2.85e-05

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/952326/cmap_HighResolution_411177601_411436801_4FGL_J2148.6+0652_daily_bin663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-05', comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.18e-05', photon_flux_error='1.18e-07', dlogl='4.33e-04', energy_flux='3.16e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-27 16:41:16.960599', photon_index_error2='0.89', photon_index2='2.63', ts='1.76', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='3.69e-07', energy_flux_error2='2.85e-05', EG='0.58', time_epoch_completed='1632786076.96', return_code='0', job_id='952326', GAL2='1.05', EG2='0.58', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='1.19e-07', ts2='1.77', photon_index='2.66' WHERE bin_id='663' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 952326: <4FGL_J2148.6+0652_daily_bin663> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin663 327.163 6.8791 411177601 411436801 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 :                                   547.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            956 sec.

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

