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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin770
RA = 327.163, Dec = 6.8791
tmin = 438912001, tmax = 439171201
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='953261', job_status='RUN', time_executed='2021-09-27 16:33:40.559546', time_epoch_executed='1632785620.56' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953261/ft1_4FGL_J2148.6+0652_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953261/ft2_4FGL_J2148.6+0652_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953261/ft1_4FGL_J2148.6+0652_daily_bin770.fits outfile=/scratch/kocevski/953261/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin770.fits ra=327.163 dec=6.8791 rad=12.0 tmin=438912001.0 tmax=439171201.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.21
user 5.90
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953261/ft1_filtered_4FGL_J2148.6+0652_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/953261/ft2_4FGL_J2148.6+0652_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/953261/ltcube_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.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/953261/ft2_4FGL_J2148.6+0652_daily_bin770.fits
.....................!
real 16.91
user 16.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953261/ft1_filtered_4FGL_J2148.6+0652_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/953261/ft2_4FGL_J2148.6+0652_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/953261/ltcube_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.fits outfile=/scratch/kocevski/953261/expmap_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.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/953261/ltcube_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.fits
.....................!
real 192.80
user 187.03
sys 5.25

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/953261/ft1_filtered_4FGL_J2148.6+0652_daily_bin770.fits scfile=/scratch/kocevski/953261/ft2_4FGL_J2148.6+0652_daily_bin770.fits outfile=/scratch/kocevski/953261/cmap_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953261/ft1_filtered_4FGL_J2148.6+0652_daily_bin770.fits scfile=/scratch/kocevski/953261/ft2_4FGL_J2148.6+0652_daily_bin770.fits outfile=/scratch/kocevski/953261/cmap_HighResolution_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.522       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5076       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12695E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15435E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8099       1.0000         .10000E-03   10000.    
    16 'norm      '    .11353E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7344       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.936       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4324       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .42369       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1779       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=   3594.821     FROM MIGRAD    STATUS=CONVERGED   1201 CALLS     4498 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.123        .18142E-02** at limit **
   2  Prefactor     .10002E-03    86.946        .18142E-02** at limit **
   3  Prefactor     .10000E-03    22.444        .18142E-02** at limit **
   4  Prefactor     .10000E-03    35.902        .18142E-02** at limit **
   5  Prefactor     .10000E-03    35.204        .18142E-02** at limit **
   6  Prefactor     .10000E-03    32.066        .18142E-02** at limit **
   7  Prefactor     .10000E-03    9.9992        .18142E-02** at limit **
   8  Prefactor     .10000E-03    5.2067        .13354E-02** at limit **
   9  Prefactor     .10000E-03    1.2830        .66166E-03** at limit **
  10  Prefactor     13.534        46.037        .10893E-03    .14042E-03
  11  Prefactor     .10000E-03    36.750        .18142E-02** at limit **
  12  norm          2.5077        2.8406        .10461E-03    .50340E-03
  13  Prefactor     .10000E-03    119.00        .18142E-02** at limit **
  14  Prefactor     .10002E-03    95.057        .15998    ** at limit **
  15  norm          5.8087        5.2716        .12168E-03    .10285E-02
  16  norm          .10000E-03    109.80        .18142E-02** at limit **
  17  Prefactor     .10000E-03    10.050        .18142E-02** at limit **
  18  Prefactor     .10000E-03    16.025        .18142E-02** at limit **
  19  norm          1.7341        2.8233        .12303E-03    .27684E-03
  20  Prefactor     .10000E-03    25.803        .18142E-02** at limit **
  21  Prefactor     .10001E-03    140.70        .36285E-03** at limit **
  22  Prefactor     .10000E-03    47.940        .18142E-02** at limit **
  23  Prefactor     54.006        54.454        .27308E-03    .25166E-04
  24  Prefactor     22.745        34.279        .83979E-04    .20459E-03
  25  Prefactor     3.4323        .88731        .26000E-04    .28554E-02
  26  Prefactor     .10000E-03    10.841        .18142E-02** at limit **
  27  Normalizat    .42355        .39779        .53640E-03    .21316E-03
  28  Prefactor     1.1780        .18728        .16527E-03    .38900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5341
  Prefactor  = 0.0001
  norm       = 2.50766
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  norm       = 5.80869
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.73407
  Prefactor  = 0.000100002
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 54.0059
  Prefactor  = 22.7451
  Prefactor  = 3.43234
  Prefactor  = 0.0001
  Normalizat = 0.423546
  Prefactor  = 1.17803
 **********
 **   18 **HESSE 
 **********

 FCN=   3594.821     FROM HESSE     STATUS=OK           501 CALLS     4999 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    86.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2068        .26708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2830        .13233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.534        46.033        .21785E-04   -1.4972    
  11  Prefactor     .10000E-03    36.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5077        2.8406        .41843E-05   -1.5391    
  13  Prefactor     .10000E-03    119.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    99.841        .15487       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8087        5.2708        .48670E-05   -1.5226    
  16  norm          .10000E-03    109.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7341        2.8231        .49213E-05   -1.5445    
  20  Prefactor     .10000E-03    25.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    140.71        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     54.006        54.452        .10923E-04   -1.4237    
  24  Prefactor     22.745        34.279        .16796E-04   -1.4754    
  25  Prefactor     3.4323        .88731        .51999E-05   -1.5337    
  26  Prefactor     .10000E-03    10.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .42355        .39774        .21456E-04   -1.1610    
  28  Prefactor     1.1780        .18726        .33053E-04   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88357e-09
Minuit parameter uncertainties:
  1  5.14755e-05
  2  0.00285903
  3  4.23999e-05
  4  0.00017932
  5  0.000347212
  6  0.000252633
  7  1.03123e-05
  8  2.4058e-05
  9  1.68826e-05
  10  46.1546
  11  2.83641e-05
  12  2.84072
  13  0.000461368
  14  0.00288347
  15  5.27122
  16  0.000740588
  17  0.000122269
  18  0.000278672
  19  2.82335
  20  0.00045034
  21  0.00229401
  22  0.00037686
  23  54.5027
  24  34.3083
  25  0.887315
  26  4.18201e-05
  27  0.400439
  28  0.187366
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  7.406e-04  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.178e+00  1.874e-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:  4.235e-01  4.004e-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: 2.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953261/likelihoodResults_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.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) = 3594.82068596
delta logL = -4.32776314483e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3594.82068596
delta logL = -4.32766573795e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96347E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6576       1.0000          .0000       5.0000    
     3 'Normalizat'    .42354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1780       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=   3594.821     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      191 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10040E-03    734.09        .90714E-02** at limit **
   2  alpha         2.7787        3.8891        .41255       -.63268E-05
   3  Normalizat    .42354        .35807        .12100        .63051E-04
   4  Prefactor     1.1780        .17961        .35172E-01    .22683E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100397
  alpha      = 2.77868
  Normalizat = 0.42354
  Prefactor  = 1.17803
 **********
 **   18 **HESSE 
 **********

 FCN=   3594.821     FROM HESSE     STATUS=OK            27 CALLS      218 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10040E-03    265.29        .36286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7787        3.6095        .16502E-01    .11170    
   3  Normalizat    .42354        .35947        .53641E-03   -1.1610    
   4  Prefactor     1.1780        .18160        .16527E-03   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25222e-09
Minuit parameter uncertainties:
  1  0.0206088
  2  2.48481
  3  0.361452
  4  0.181693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953261': 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) = 3594.8206424
delta logL = 2.86333488475e-07

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.004e-04  2.061e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.779e+00  2.485e+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.178e+00  1.817e-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:  4.235e-01  3.615e-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/953261/cmap_HighResolution_438912001_439171201_4FGL_J2148.6+0652_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-05', job_status='DONE', photon_flux_upper_limit='2.34e-07', time_completed='2021-09-27 16:44:22.901898', job_id='953261', GAL2='1.18', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1632786262.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='770' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:44:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 953261: <4FGL_J2148.6+0652_daily_bin770> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin770 327.163 6.8791 438912001 439171201 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 :                                   640.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            842 sec.

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

