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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin700
RA = 226.674, Dec = 8.2256
tmin = 420768001, tmax = 421027201
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='57320', job_status='RUN', time_executed='2021-09-11 00:29:30.224052', time_epoch_executed='1631345370.22' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57320/ft1_4FGL_J1506.6+0813_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57320/ft1_4FGL_J1506.6+0813_daily_bin700.fits outfile=/scratch/kocevski/57320/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin700.fits ra=226.674 dec=8.2256 rad=12.0 tmin=420768001.0 tmax=421027201.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 3.58
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.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/57320/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin700.fits evtable="EVENTS" outfile="/scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/57320/ltcube_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.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/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits
.....................!
real 11.62
user 11.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/57320/ltcube_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.fits outfile=/scratch/kocevski/57320/expmap_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.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/57320/ltcube_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.fits
.....................!
real 190.88
user 186.70
sys 3.84

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J1506.6+0813 @ 226.674 8.2256

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits scfile=/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits outfile=/scratch/kocevski/57320/cmap_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.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=226.674 yref=8.2256 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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits scfile=/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits outfile=/scratch/kocevski/57320/cmap_HighResolution_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.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=226.674 yref=8.2256 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57320/Model_4FGL_J1506.6+0813_daily_bin700.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/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits.....................!
real 59.82
user 58.02
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits', '/scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits', expMap='/scratch/kocevski/57320/expmap_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.fits', expCube='/scratch/kocevski/57320/ltcube_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/57320/Model_4FGL_J1506.6+0813_daily_bin700.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.6+0813'

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.295e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/57320/ft1_filtered_4FGL_J1506.6+0813_daily_bin700.fits
Spacecraft file(s): /scratch/kocevski/57320/ft2_4FGL_J1506.6+0813_daily_bin700.fits
Exposure map: /scratch/kocevski/57320/expmap_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.fits
Exposure cube: /scratch/kocevski/57320/ltcube_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/57320/Model_4FGL_J1506.6+0813_daily_bin700.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) = 7818.71197455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.371       1.0000         .10000E-03   10000.    
     2 'norm      '    .27644E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    101.53       1.0000         .10000E-03   10000.    
     5 'norm      '    16.274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.636       1.0000         .10000E-03   10000.    
    11 'norm      '    .24383       1.0000         .10000E-03   10000.    
    12 'norm      '    6.8402       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6365       1.0000         .10000E-03   10000.    
    14 'norm      '    10.927       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3173       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.124       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5758       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.924       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0158       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91978       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   7818.708     FROM MIGRAD    STATUS=CONVERGED    936 CALLS     3503 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.369        45.330        .40944E-04   -.44037E-04
   2  norm          .10000E-03    18.459        .12127    ** at limit **
   3  Prefactor     12.941        41.347        .11134E-03   -.11232E-04
   4  Prefactor     101.53        50.518        .39901E-04   -.28435E-04
   5  norm          16.273        22.018        .99281E-04   -.23016E-04
   6  Prefactor     .10000E-03    17.603        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.5999        .18142E-02** at limit **
   8  Prefactor     .10000E-03    7.7037        .18142E-02** at limit **
   9  Prefactor     .10000E-03    15.424        .18142E-02** at limit **
  10  Prefactor     41.643        53.203        .62124E-04   -.30195E-04
  11  norm          .24382        .14577        .25407E-04    .44388E-03
  12  norm          6.8404        2.8621        .90155E-04   -.17755E-03
  13  norm          6.6364        5.7295        .15577E-03   -.20582E-04
  14  norm          10.925        28.121        .12120E-03   -.97554E-05
  15  norm          3.1961        2.8061        .13374E-03   -.26777E-04
  16  Prefactor     2.3086        260.46        .26948E-03   -.99142E-05
  17  Prefactor     .10000E-03    16.000        .18142E-02** at limit **
  18  Prefactor     16.143        39.069        .99744E-04   -.19376E-05
  19  Prefactor     5.5760        4.2905        .15295E-03   -.25793E-04
  20  Prefactor     .10000E-03    11.954        .18142E-02** at limit **
  21  norm          .10000E-03    .85451        .79774E-03** at limit **
  22  Prefactor     27.923        69.445        .75814E-04   -.70479E-05
  23  Normalizat    1.0156        .25626        .33604E-03   -.11107E-03
  24  Prefactor     .91989        .13084        .19080E-03   -.16245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.3685
  norm       = 0.0001
  Prefactor  = 12.9408
  Prefactor  = 101.533
  norm       = 16.2727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.643
  norm       = 0.243817
  norm       = 6.84043
  norm       = 6.63642
  norm       = 10.9251
  norm       = 3.19607
  Prefactor  = 2.30864
  Prefactor  = 0.0001
  Prefactor  = 16.1429
  Prefactor  = 5.57601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.9229
  Normalizat = 1.01555
  Prefactor  = 0.919888
 **********
 **   18 **HESSE 
 **********

 FCN=   7818.708     FROM HESSE     STATUS=OK           383 CALLS     3886 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.369        45.332        .81889E-05   -1.3741    
   2  norm          .10000E-03    18.117        .12328       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.941        41.346        .44534E-05   -1.4988    
   4  Prefactor     101.53        50.523        .79802E-05   -1.3689    
   5  norm          16.273        22.022        .39713E-05   -1.4901    
   6  Prefactor     .10000E-03    17.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6001        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.643        53.236        .24850E-05   -1.4416    
  11  norm          .24382        .14577        .10163E-05   -1.5609    
  12  norm          6.8404        2.8621        .36062E-05   -1.5185    
  13  norm          6.6364        5.7294        .62308E-05   -1.5193    
  14  norm          10.925        28.122        .48480E-05   -1.5047    
  15  norm          3.1961        2.8060        .53496E-05   -1.5350    
  16  Prefactor     2.3086        260.63        .10779E-04   -1.5404    
  17  Prefactor     .10000E-03    16.000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.143        39.062        .39898E-05   -1.4904    
  19  Prefactor     5.5760        4.2904        .61180E-05   -1.5236    
  20  Prefactor     .10000E-03    11.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .85452        .15955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.923        69.529        .30326E-05   -1.4651    
  23  Normalizat    1.0156        .25648        .13442E-04   -.92511    
  24  Prefactor     .91989        .13095        .38161E-04   -.95450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83336e-11
Minuit parameter uncertainties:
  1  45.3483
  2  2.73216e-06
  3  41.4374
  4  50.5443
  5  22.0327
  6  1.52078e-06
  7  1.36988e-06
  8  1.92171e-06
  9  2.6269e-06
  10  53.2963
  11  0.145766
  12  2.86211
  13  5.72992
  14  28.1564
  15  2.80614
  16  49.2792
  17  1.95423e-05
  18  39.1237
  19  4.2906
  20  2.04551e-06
  21  6.13208e-07
  22  69.7322
  23  0.256788
  24  0.130998
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  6.636e+00  5.730e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.199e-01  1.310e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.016e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.67
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 2.64e-05

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) = 7818.52176638
delta logL = 0.186474915986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7818.5160953
delta logL = 0.192145988819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9607       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2084       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7818.516     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      211 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9574        7.8895        .41118E-02   -.91436E-04
   2  alpha         1.2077        .73241        .50000       -.11869E-04
   3  Normalizat    1.0159        .20081        .75928E-01    .22947E-04
   4  Prefactor     .92202        .10922        .45287E-01    .56247E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.95737
  alpha      = 1.20767
  Normalizat = 1.01586
  Prefactor  = 0.92202
 **********
 **   18 **HESSE 
 **********

 FCN=   7818.516     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9574        6.1150        .16447E-03   -1.5220    
   2  alpha         1.2077        .63726        .20722E-01   -.54326    
   3  Normalizat    1.0159        .23421        .33602E-03   -.92501    
   4  Prefactor     .92202        .12834        .19064E-03   -.95376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07424e-10
Minuit parameter uncertainties:
  1  6.11561
  2  0.647072
  3  0.234443
  4  0.12838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57320': 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) = 7818.51609403
delta logL = 0.192147263284

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  5.957e+00  6.116e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.208e+00  6.471e-01  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.220e-01  1.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.016e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 226.674 8.226
Photon Index (Free Index): 1.21 +/- 0.65
Photon Flux (Free Index): 8.22e-09 +/- 9.95e-09
Energy Flux (Free Index): 5.00e-05 +/- 5.98e-05

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/57320/cmap_HighResolution_420768001_421027201_4FGL_J1506.6+0813_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='5.00e-05', photon_flux_error='1.16e-08', dlogl='1.92e-01', energy_flux='3.06e-05', photon_flux2='8.22e-09', job_status='DONE', time_completed='2021-09-11 00:40:43.891419', photon_index_error2='0.65', photon_index2='1.21', ts='9.67', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='5.98e-05', EG='1.02', time_epoch_completed='1631346043.89', return_code='0', job_id='57320', GAL2='0.92', EG2='1.02', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='9.95e-09', ts2='10.05', photon_index='1.60' WHERE bin_id='700' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:40:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 57320: <4FGL_J1506.6+0813_daily_bin700> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin700> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 00:26:14 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:26:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:26:15 2021
Terminated at Sat Sep 11 00:40:44 2021
Results reported at Sat Sep 11 00:40:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin700 226.674 8.2256 420768001 421027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.6+0813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

