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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin31
RA = 327.163, Dec = 6.8791
tmin = 247363201, tmax = 247622401
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='947006', job_status='RUN', time_executed='2021-09-27 16:08:22.331984', time_epoch_executed='1632784102.33' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947006/ft1_4FGL_J2148.6+0652_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947006/ft2_4FGL_J2148.6+0652_daily_bin31.fits


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

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

Done.
real 1.24
user 1.04
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947006/ft1_filtered_4FGL_J2148.6+0652_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/947006/ft2_4FGL_J2148.6+0652_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/947006/ltcube_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.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/947006/ft2_4FGL_J2148.6+0652_daily_bin31.fits
.....................!
real 11.04
user 10.74
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947006/ft1_filtered_4FGL_J2148.6+0652_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/947006/ft2_4FGL_J2148.6+0652_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/947006/ltcube_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.fits outfile=/scratch/kocevski/947006/expmap_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.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/947006/ltcube_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.fits
.....................!
real 155.67
user 152.17
sys 3.14

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/947006/ft1_filtered_4FGL_J2148.6+0652_daily_bin31.fits scfile=/scratch/kocevski/947006/ft2_4FGL_J2148.6+0652_daily_bin31.fits outfile=/scratch/kocevski/947006/cmap_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.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.48
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947006/ft1_filtered_4FGL_J2148.6+0652_daily_bin31.fits scfile=/scratch/kocevski/947006/ft2_4FGL_J2148.6+0652_daily_bin31.fits outfile=/scratch/kocevski/947006/cmap_HighResolution_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=327.163 yref=6.8791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.48
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.229       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    64.413       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.949       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4433       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6089       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.516       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.308       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11119       1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.372       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1968       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .54287       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98320       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=   7274.507     FROM MIGRAD    STATUS=CONVERGED   1248 CALLS     4069 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.037        22.444        .63342E-04    .73408E-04
   2  Prefactor     .10000E-03    11.184        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.089        .18142E-02** at limit **
   4  Prefactor     77.221        66.381        .45694E-04    .46276E-05
   5  Prefactor     .10000E-03    15.632        .18142E-02** at limit **
   6  Prefactor     .10000E-03    42.779        .18142E-02** at limit **
   7  Prefactor     .10000E-03    4.9969        .36285E-03** at limit **
   8  Prefactor     10.951        7.2488        .12107E-03   -.12892E-03
   9  Prefactor     .10000E-03    1.2910        .18598E-03** at limit **
  10  Prefactor     .10000E-03    43.477        .18142E-02** at limit **
  11  Prefactor     64.405        49.019        .50002E-04   -.42744E-05
  12  norm          3.3556        2.7791        .12226E-03    .14227E-04
  13  Prefactor     .10000E-03    33.908        .18142E-02** at limit **
  14  Prefactor     37.985        41.054        .65061E-04    .14654E-03
  15  norm          9.4432        3.0442        .79278E-04    .65693E-03
  16  norm          .10000E-03    15.985        .18142E-02** at limit **
  17  Prefactor     .10000E-03    5.2480        .18142E-02** at limit **
  18  Prefactor     4.6111        13.320        .18749E-03    .15032E-03
  19  norm          1.2298        .96314        .72928E-04    .32862E-03
  20  Prefactor     20.518        20.389        .88428E-04    .80738E-04
  21  Prefactor     19.322        20.514        .91149E-04   -.16988E-03
  22  Prefactor     .34607E-01    27.959        .86032E-01    .96156E-04
  23  Prefactor     39.364        27.955        .63879E-04    .18943E-03
  24  Prefactor     .10000E-03    9.2389        .18142E-02** at limit **
  25  Prefactor     1.1967        .33282        .24902E-04   -.41819E-03
  26  Prefactor     .10000E-03    4.0220        .16689E-02** at limit **
  27  Normalizat    .54294        .27670        .43070E-03    .20581E-03
  28  Prefactor     .98324        .12444        .16636E-03    .38509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.2213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.4051
  norm       = 3.35558
  Prefactor  = 0.0001
  Prefactor  = 37.9851
  norm       = 9.44325
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6111
  norm       = 1.22985
  Prefactor  = 20.5176
  Prefactor  = 19.3216
  Prefactor  = 0.0346073
  Prefactor  = 39.3641
  Prefactor  = 0.0001
  Prefactor  = 1.1967
  Prefactor  = 0.0001
  Normalizat = 0.542944
  Prefactor  = 0.98324
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.507     FROM HESSE     STATUS=OK           501 CALLS     4570 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.037        22.447        .25337E-05   -1.4442    
   2  Prefactor     .10000E-03    11.184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     77.221        66.378        .91389E-05   -1.3948    
   5  Prefactor     .10000E-03    15.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9971        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.951        7.2482        .48429E-05   -1.5046    
   9  Prefactor     .10000E-03    1.2911        .37197E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.405        49.016        .10000E-04   -1.4101    
  12  norm          3.3556        2.7789        .48904E-05   -1.5342    
  13  Prefactor     .10000E-03    33.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.985        41.052        .13012E-04   -1.4475    
  15  norm          9.4432        3.0440        .31711E-05   -1.5093    
  16  norm          .10000E-03    15.989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6111        13.317        .74994E-05   -1.5278    
  19  norm          1.2298        .96311        .29171E-05   -1.5486    
  20  Prefactor     20.518        20.385        .35371E-05   -1.4802    
  21  Prefactor     19.322        20.347        .36460E-05   -1.4829    
  22  Prefactor     .34607E-01    23.889        .93687E-01   -1.5671    
  23  Prefactor     39.364        27.954        .12776E-04   -1.4452    
  24  Prefactor     .10000E-03    9.2420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1967        .33281        .99608E-06   -1.5489    
  26  Prefactor     .10000E-03    4.0223        .33378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .54294        .27656        .17228E-04   -1.1046    
  28  Prefactor     .98324        .12445        .33273E-04   -.93290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04338e-10
Minuit parameter uncertainties:
  1  22.4513
  2  6.7495e-06
  3  9.19575e-06
  4  66.4415
  5  8.10282e-07
  6  0.00019872
  7  1.20901e-05
  8  7.24876
  9  1.25844e-06
  10  7.18066e-05
  11  49.0469
  12  2.77898
  13  5.30101e-05
  14  41.0822
  15  3.04401
  16  1.91266e-05
  17  2.5489e-05
  18  13.3257
  19  0.963126
  20  20.3924
  21  20.3543
  22  1.8166
  23  27.9631
  24  4.15954e-06
  25  0.332811
  26  2.23713e-06
  27  0.277268
  28  0.124484
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  1.913e-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:  9.832e-01  1.245e-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.429e-01  2.773e-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: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947006/likelihoodResults_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.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) = 7274.50746331
delta logL = -0.000298153656331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7274.50716536
delta logL = -1.98677298613e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11154E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6974       1.0000          .0000       5.0000    
     3 'Normalizat'    .54285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98328       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=   7274.507     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.351        .90712E-02** at limit **
   2  alpha         2.7419        3.6435        .41315       -.13188E-04
   3  Normalizat    .54294        .21175        .97192E-01    .46638E-04
   4  Prefactor     .98324        .10872        .46058E-01   -.20609E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.7419
  Normalizat = 0.542943
  Prefactor  = 0.98324
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.507     FROM HESSE     STATUS=OK            27 CALLS      229 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7419        3.6037        .16526        .96910E-01
   3  Normalizat    .54294        .23473        .43067E-03   -1.1046    
   4  Prefactor     .98324        .12092        .16636E-03   -.93290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84376e-10
Minuit parameter uncertainties:
  1  0.000222921
  2  2.49206
  3  0.23516
  4  0.120955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947006': 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) = 7274.50716472
delta logL = 4.42862074124e-07

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.000e-04  2.229e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.742e+00  2.492e+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:  9.832e-01  1.210e-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.429e-01  2.352e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/947006/cmap_HighResolution_247363201_247622401_4FGL_J2148.6+0652_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-09-27 16:20:35.645657', job_id='947006', GAL2='0.98', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1632784835.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='31' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:20:35 PDT 2021


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

Job <4FGL_J2148.6+0652_daily_bin31> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 16:05:24 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:07:46 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:07:46 2021
Terminated at Mon Sep 27 16:20:36 2021
Results reported at Mon Sep 27 16:20:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin31 327.163 6.8791 247363201 247622401 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 :                                   731.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            912 sec.

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

