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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin510
RA = 226.674, Dec = 8.2256
tmin = 371520001, tmax = 371779201
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='55960', job_status='RUN', time_executed='2021-09-11 00:25:13.031289', time_epoch_executed='1631345113.03' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55960/ft1_4FGL_J1506.6+0813_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55960/ft1_4FGL_J1506.6+0813_daily_bin510.fits outfile=/scratch/kocevski/55960/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin510.fits ra=226.674 dec=8.2256 rad=12.0 tmin=371520001.0 tmax=371779201.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 4.42
user 4.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55960/ft1_filtered_4FGL_J1506.6+0813_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/55960/ltcube_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.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/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits
.....................!
real 14.07
user 13.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55960/ft1_filtered_4FGL_J1506.6+0813_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/55960/ltcube_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.fits outfile=/scratch/kocevski/55960/expmap_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.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/55960/ltcube_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.fits
.....................!
real 190.24
user 185.23
sys 4.66

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/55960/ft1_filtered_4FGL_J1506.6+0813_daily_bin510.fits scfile=/scratch/kocevski/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits outfile=/scratch/kocevski/55960/cmap_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55960/ft1_filtered_4FGL_J1506.6+0813_daily_bin510.fits scfile=/scratch/kocevski/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits outfile=/scratch/kocevski/55960/cmap_HighResolution_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55960/ft1_filtered_4FGL_J1506.6+0813_daily_bin510.fits', '/scratch/kocevski/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits', expMap='/scratch/kocevski/55960/expmap_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.fits', expCube='/scratch/kocevski/55960/ltcube_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55960/Model_4FGL_J1506.6+0813_daily_bin510.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/55960/ft1_filtered_4FGL_J1506.6+0813_daily_bin510.fits
Spacecraft file(s): /scratch/kocevski/55960/ft2_4FGL_J1506.6+0813_daily_bin510.fits
Exposure map: /scratch/kocevski/55960/expmap_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.fits
Exposure cube: /scratch/kocevski/55960/ltcube_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55960/Model_4FGL_J1506.6+0813_daily_bin510.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) = 7481.87945864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.430       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.621       1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8451       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .34142       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.758       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55560E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.9242       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8084       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2894       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97684       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.

 FCN=   7481.838     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2342 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0338        .45738E-06** at limit **
   2  norm          15.429        14.661        .72647E-07    .14206E-04
   3  Prefactor     37.469        38.873       -.71447E-05    .14293E-04
   4  Prefactor     22.613        23.601       -.20432E-05    .59083E-04
   5  norm          .10000E-03    9.2369       -.23915E-05** at limit **
   6  Prefactor     .10000E-03    10.897        .65471E-05** at limit **
   7  Prefactor     .10000E-03    34.530        .23235E-05** at limit **
   8  Prefactor     .10000E-03    12.966       -.69812E-05** at limit **
   9  Prefactor     1.8360        54.097        .15333E-06   -.62110E-04
  10  Prefactor     .10000E-03    22.730       -.60144E-05** at limit **
  11  norm          .34133        .18020       -.39383E-07    .63193E-03
  12  norm          .10000E-03    1.5088       -.24887E-06** at limit **
  13  norm          .10000E-03    4.2535        .21603E-06** at limit **
  14  norm          .10000E-03    15.160        .15336E-04** at limit **
  15  norm          .10000E-03    1.7082       -.94064E-07** at limit **
  16  Prefactor     13.749        34.651       -.76627E-05    .30905E-04
  17  Prefactor     .10000E-03    13.243       -.60472E-05** at limit **
  18  Prefactor     3.3475        121.45       -.81292E-04    .86330E-06
  19  Prefactor     .14920E-01    2.3613       -.86956E-06    .65264E-04
  20  Prefactor     .10000E-03    13.659       -.25649E-05** at limit **
  21  norm          7.9246        5.3036       -.22047E-05   -.28844E-05
  22  Prefactor     9.7970        61.793       -.25994E-04    .47395E-05
  23  Normalizat    1.2896        .21843        .49195E-05    .35866E-03
  24  Prefactor     .97691        .11678        .13720E-05    .76842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.4294
  Prefactor  = 37.4693
  Prefactor  = 22.6135
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.836
  Prefactor  = 0.0001
  norm       = 0.341334
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7486
  Prefactor  = 0.0001
  Prefactor  = 3.34754
  Prefactor  = 0.0149202
  Prefactor  = 0.0001
  norm       = 7.92458
  Prefactor  = 9.79698
  Normalizat = 1.28956
  Prefactor  = 0.976907
 **********
 **   18 **HESSE 
 **********

 FCN=   7481.838     FROM HESSE     STATUS=OK           397 CALLS     2739 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.429        14.662        .10196E-03   -1.4922    
   3  Prefactor     37.469        38.902        .65469E-04   -1.4483    
   4  Prefactor     22.613        23.593        .84218E-04   -1.4757    
   5  norm          .10000E-03    9.2394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8360        54.460        .30701E-03   -1.5437    
  10  Prefactor     .10000E-03    22.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34133        .17723        .25423E-04   -1.5591    
  12  norm          .10000E-03    1.5611        .20722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2815        .17420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7227        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.749        34.621        .10799E-03   -1.4966    
  17  Prefactor     .10000E-03    13.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3475        123.60        .22025E-03   -1.5342    
  19  Prefactor     .14920E-01    6.5840        .40416E-01   -1.5684    
  20  Prefactor     .10000E-03    13.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.9246        5.3094        .14244E-03   -1.5145    
  22  Prefactor     9.7970        62.034        .12795E-03   -1.5082    
  23  Normalizat    1.2896        .26053        .31342E-03   -.83879    
  24  Prefactor     .97691        .14064        .19395E-03   -.93503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95139e-10
Minuit parameter uncertainties:
  1  6.13709e-06
  2  14.6652
  3  38.9281
  4  23.6023
  5  1.27109e-05
  6  2.38044e-05
  7  0.000234856
  8  3.22954e-05
  9  20.0183
  10  6.72756e-06
  11  0.177234
  12  2.49653e-05
  13  1.35713e-05
  14  1.08133e-07
  15  1.13719e-05
  16  34.6719
  17  1.82136e-05
  18  40.7729
  19  0.624813
  20  2.38312e-05
  21  5.30969
  22  49.3801
  23  0.260794
  24  0.140693
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.357e-05  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.769e-01  1.407e-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.290e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 3.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55960/likelihoodResults_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.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) = 7481.83920697
delta logL = -0.00111210836621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7481.8380968
delta logL = -1.9393146431e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6248       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97681       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=   7481.838     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0060        .90712E-02** at limit **
   2  alpha         1.6535        3.3236        .44906       -.29561E-04
   3  Normalizat    1.2896        .20942        .70833E-01   -.29192E-03
   4  Prefactor     .97690        .11535        .45977E-01   -.57713E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.65349
  Normalizat = 1.28956
  Prefactor  = 0.976904
 **********
 **   18 **HESSE 
 **********

 FCN=   7481.838     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6400        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6535        3.2979        .50000       -.34543    
   3  Normalizat    1.2896        .24973        .31342E-03   -.83879    
   4  Prefactor     .97690        .13770        .19395E-03   -.93503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09393e-09
Minuit parameter uncertainties:
  1  2.06441e-05
  2  2.37571
  3  0.249964
  4  0.137745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55960': 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) = 7481.83809416
delta logL = 7.07802428224e-07

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  2.064e-05  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.653e+00  2.376e+00  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.769e-01  1.377e-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.290e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.674 8.226

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/55960/cmap_HighResolution_371520001_371779201_4FGL_J1506.6+0813_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-05', job_status='DONE', photon_flux_upper_limit='3.28e-08', time_completed='2021-09-11 00:36:03.454004', job_id='55960', GAL2='0.98', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631345763.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='510' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:36:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 55960: <4FGL_J1506.6+0813_daily_bin510> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin510> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:21:42 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:21:43 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:21:43 2021
Terminated at Sat Sep 11 00:36:03 2021
Results reported at Sat Sep 11 00:36:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin510 226.674 8.2256 371520001 371779201 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

