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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin728
RA = 327.163, Dec = 6.8791
tmin = 428025601, tmax = 428284801
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='953195', job_status='RUN', time_executed='2021-09-27 16:33:37.491916', time_epoch_executed='1632785617.49' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953195

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953195/ft1_4FGL_J2148.6+0652_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953195/ft2_4FGL_J2148.6+0652_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953195/ft1_4FGL_J2148.6+0652_daily_bin728.fits outfile=/scratch/kocevski/953195/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin728.fits ra=327.163 dec=6.8791 rad=12.0 tmin=428025601.0 tmax=428284801.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.65
user 5.35
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953195/ft1_filtered_4FGL_J2148.6+0652_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/953195/ft2_4FGL_J2148.6+0652_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/953195/ltcube_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.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/953195/ft2_4FGL_J2148.6+0652_daily_bin728.fits
.....................!
real 14.78
user 14.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953195/ft1_filtered_4FGL_J2148.6+0652_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/953195/ft2_4FGL_J2148.6+0652_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/953195/ltcube_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.fits outfile=/scratch/kocevski/953195/expmap_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.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/953195/ltcube_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.fits
.....................!
real 191.42
user 185.85
sys 4.63

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/953195/ft1_filtered_4FGL_J2148.6+0652_daily_bin728.fits scfile=/scratch/kocevski/953195/ft2_4FGL_J2148.6+0652_daily_bin728.fits outfile=/scratch/kocevski/953195/cmap_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953195/ft1_filtered_4FGL_J2148.6+0652_daily_bin728.fits scfile=/scratch/kocevski/953195/ft2_4FGL_J2148.6+0652_daily_bin728.fits outfile=/scratch/kocevski/953195/cmap_HighResolution_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11839E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37749       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.806       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    118.70       1.0000         .10000E-03   10000.    
    15 'norm      '    .17589       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5387       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49262       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .61343       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74519       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0879       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=   5300.831     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3524 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.753        .38704E-06** at limit **
   2  Prefactor     .10000E-03    18.285       -.15648E-06** at limit **
   3  Prefactor     .10000E-03    40.600       -.16628E-06** at limit **
   4  Prefactor     .10000E-03    22.021        .30717E-06** at limit **
   5  Prefactor     .10000E-03    8.0374        .56194E-07** at limit **
   6  Prefactor     .10000E-03    46.896       -.50582E-07** at limit **
   7  Prefactor     .10058E-03    5.6162       -.31461E-06** at limit **
   8  Prefactor     .10000E-03    5.7254       -.11412E-06** at limit **
   9  Prefactor     .37230        3.1697        .14244E-05   -.31453E-03
  10  Prefactor     33.695        45.549       -.21808E-05   -.17263E-03
  11  Prefactor     .10000E-03    41.281       -.25470E-06** at limit **
  12  norm          12.805        5.3711        .12503E-06   -.45481E-04
  13  Prefactor     .10000E-03    73.716        .50424E-06** at limit **
  14  Prefactor     118.73        78.438        .63055E-06   -.16453E-04
  15  norm          .16883        2.2506       -.17391E-06    .68366E-03
  16  norm          2.5589        125.08       -.19367E-05    .47395E-05
  17  Prefactor     .10000E-03    11.251        .15626E-05** at limit **
  18  Prefactor     .52141        16.743        .25283E-05   -.28451E-03
  19  norm          .10000E-03    .44963       -.32819E-07** at limit **
  20  Prefactor     .10000E-03    11.976        .17520E-06** at limit **
  21  Prefactor     .10000E-03    12.044       -.21540E-07** at limit **
  22  Prefactor     .10000E-03    11.058       -.33122E-07** at limit **
  23  Prefactor     .10000E-03    96.427       -.10264E-05** at limit **
  24  Prefactor     .10000E-03    30.012       -.18201E-06** at limit **
  25  Prefactor     .61338        .36686        .14693E-08   -.10565E-03
  26  Prefactor     .10000E-03    33.417       -.49228E-06** at limit **
  27  Normalizat    .74523        .31465       -.40571E-05   -.27356E-03
  28  Prefactor     1.0879        .14292        .30422E-06   -.68312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100576
  Prefactor  = 0.0001
  Prefactor  = 0.372298
  Prefactor  = 33.695
  Prefactor  = 0.0001
  norm       = 12.8054
  Prefactor  = 0.000100001
  Prefactor  = 118.727
  norm       = 0.168828
  norm       = 2.55888
  Prefactor  = 0.0001
  Prefactor  = 0.521408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.613375
  Prefactor  = 0.0001
  Normalizat = 0.745231
  Prefactor  = 1.08786
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.831     FROM HESSE     STATUS=OK           523 CALLS     4047 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10058E-03    5.6597        .53619E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7559        .16997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .37230        5.0987        .21793E-02   -1.5586    
  10  Prefactor     33.695        44.884        .69051E-04   -1.4546    
  11  Prefactor     .10000E-03    41.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.805        5.3690        .10362E-03   -1.4992    
  13  Prefactor     .10000E-03    73.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     118.73        77.406        .18467E-03   -1.3524    
  15  norm          .16883        27.972        .18348E-02   -1.5626    
  16  norm          2.5589        132.51        .25632E-03   -1.5388    
  17  Prefactor     .10000E-03    11.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .52141        165.50        .51620E-02   -1.5564    
  19  norm          .10000E-03    .45248        .47628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    96.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .61338        .36384        .32511E-04   -1.5551    
  26  Prefactor     .10000E-03    34.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .74523        .36071        .41671E-03   -1.0213    
  28  Prefactor     1.0879        .16776        .17068E-03   -.89856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00622e-08
Minuit parameter uncertainties:
  1  0.000578831
  2  4.89148e-05
  3  1.62847e-05
  4  0.00013547
  5  9.92612e-06
  6  6.9633e-05
  7  0.0036128
  8  1.01505e-05
  9  2.75545
  10  44.9288
  11  8.15924e-05
  12  5.36921
  13  0.000505579
  14  77.4716
  15  4.34704
  16  36.9136
  17  7.70241e-05
  18  18.6291
  19  1.026e-06
  20  2.39412e-05
  21  1.96884e-06
  22  1.10315e-05
  23  0.000469611
  24  4.2608e-05
  25  0.363846
  26  6.98112e-05
  27  0.361873
  28  0.167842
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.559e+00  3.691e+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.088e+00  1.678e-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:  7.452e-01  3.619e-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.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953195/likelihoodResults_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.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) = 5300.55851627
delta logL = 0.272293453051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5300.5522547
delta logL = 0.278555027301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6855       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2554       1.0000          .0000       5.0000    
     3 'Normalizat'    .67674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1086       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=   5300.552     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      280 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6944        426.05        .42116E-02   -.19476E-03
   2  alpha         4.2545        4.6157        .50000        .57430E-05
   3  Normalizat    .67581        .12374        .98366E-01   -.43180E-03
   4  Prefactor     1.1091        .59034E-01    .37268E-01   -.59546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.69444
  alpha      = 4.25451
  Normalizat = 0.675806
  Prefactor  = 1.10906
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.552     FROM HESSE     STATUS=OK            31 CALLS      311 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6944        24.114        .16846E-03   -1.5231    
   2  alpha         4.2545        4.4388        .49665E-01    .77793    
   3  Normalizat    .67581        .35035        .43592E-03   -1.0486    
   4  Prefactor     1.1091        .16805        .16916E-03   -.89178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50331e-09
Minuit parameter uncertainties:
  1  23.4521
  2  3.19236
  3  0.35151
  4  0.168129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953195': 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) = 5300.55225095
delta logL = 0.27855876895

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.694e+00  2.345e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  4.255e+00  3.192e+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:  1.109e+00  1.681e-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.758e-01  3.515e-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/953195/cmap_HighResolution_428025601_428284801_4FGL_J2148.6+0652_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-05', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-09-27 16:45:35.672092', job_id='953195', GAL2='1.11', fit_tolerance='1e-08', EG2='0.68', EG='0.75', time_epoch_completed='1632786335.67', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.79e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='728' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 953195: <4FGL_J2148.6+0652_daily_bin728> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin728> 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) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:30:48 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:48 2021
Terminated at Mon Sep 27 16:45:36 2021
Results reported at Mon Sep 27 16:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin728 327.163 6.8791 428025601 428284801 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 :                                   713.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            921 sec.

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

