/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 226 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.6+0813_daily_bin145
RA = 226.674, Dec = 8.2256
tmin = 276912001, tmax = 277171201
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='54241', job_status='RUN', time_executed='2021-09-11 00:20:17.389946', time_epoch_executed='1631344817.39' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54241/ft1_4FGL_J1506.6+0813_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54241/ft2_4FGL_J1506.6+0813_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54241/ft1_4FGL_J1506.6+0813_daily_bin145.fits outfile=/scratch/kocevski/54241/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin145.fits ra=226.674 dec=8.2256 rad=12.0 tmin=276912001.0 tmax=277171201.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.48
user 3.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54241/ft2_4FGL_J1506.6+0813_daily_bin145.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/54241/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin145.fits evtable="EVENTS" outfile="/scratch/kocevski/54241/ft1_filtered_4FGL_J1506.6+0813_daily_bin145.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.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54241/ft1_filtered_4FGL_J1506.6+0813_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/54241/ft2_4FGL_J1506.6+0813_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/54241/ltcube_276912001_277171201_4FGL_J1506.6+0813_daily_bin145.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/54241/ft2_4FGL_J1506.6+0813_daily_bin145.fits
.....................!
real 11.68
user 11.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54241/ft1_filtered_4FGL_J1506.6+0813_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/54241/ft2_4FGL_J1506.6+0813_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/54241/ltcube_276912001_277171201_4FGL_J1506.6+0813_daily_bin145.fits outfile=/scratch/kocevski/54241/expmap_276912001_277171201_4FGL_J1506.6+0813_daily_bin145.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/54241/ltcube_276912001_277171201_4FGL_J1506.6+0813_daily_bin145.fits
.....................!
real 192.01
user 186.28
sys 5.42

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/54241/ft1_filtered_4FGL_J1506.6+0813_daily_bin145.fits scfile=/scratch/kocevski/54241/ft2_4FGL_J1506.6+0813_daily_bin145.fits outfile=/scratch/kocevski/54241/cmap_276912001_277171201_4FGL_J1506.6+0813_daily_bin145.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54241/ft1_filtered_4FGL_J1506.6+0813_daily_bin145.fits scfile=/scratch/kocevski/54241/ft2_4FGL_J1506.6+0813_daily_bin145.fits outfile=/scratch/kocevski/54241/cmap_HighResolution_276912001_277171201_4FGL_J1506.6+0813_daily_bin145.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.921       1.0000         .10000E-03   10000.    
     2 'norm      '    9.8653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11279E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.496       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.301       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0993       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5579       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8844       1.0000         .10000E-03   10000.    
    14 'norm      '    38.738       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0559       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.075       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7808       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.403       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70973       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2150       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=   7209.970     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2690 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.856        40.596       -.81873E-06   -.83876E-04
   2  norm          9.8708        20.029        .10616E-07    .53221E-05
   3  Prefactor     .10000E-03    16.008       -.72172E-07** at limit **
   4  Prefactor     .10000E-03    77.434       -.28766E-06** at limit **
   5  norm          .10000E-03    14.735       -.85338E-07** at limit **
   6  Prefactor     .10000E-03    6.9168        .12811E-06** at limit **
   7  Prefactor     19.502        19.224       -.11340E-06    .10673E-06
   8  Prefactor     .10000E-03    8.0067        .27627E-06** at limit **
   9  Prefactor     25.305        19.574       -.51017E-07   -.58359E-05
  10  Prefactor     .10000E-03    17.828        .25426E-06** at limit **
  11  norm          1.0993        .26955       -.91590E-09   -.13224E-03
  12  norm          4.5580        2.7714       -.66818E-08   -.52924E-04
  13  norm          3.8843        4.0306       -.22999E-05    .10590E-03
  14  norm          38.735        38.230        .32782E-07   -.55825E-05
  15  norm          3.0547        3.8421        .15331E-06   -.28488E-04
  16  Prefactor     .10000E-03    17.114        .16070E-06** at limit **
  17  Prefactor     1.1546        122.92        .46869E-05   -.67710E-05
  18  Prefactor     67.074        40.464       -.14776E-06    .17776E-05
  19  Prefactor     .10000E-03    1.7715        .17328E-06** at limit **
  20  Prefactor     .10000E-03    12.956        .13099E-06** at limit **
  21  norm          4.7794        4.1037        .61687E-07   -.22489E-04
  22  Prefactor     34.327        63.698       -.64603E-06   -.59586E-04
  23  Normalizat    .70927        .25104        .20197E-05   -.37404E-04
  24  Prefactor     1.2153        .13553       -.91162E-06    .39354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.8555
  norm       = 9.87084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5016
  Prefactor  = 0.0001
  Prefactor  = 25.3045
  Prefactor  = 0.0001
  norm       = 1.09932
  norm       = 4.55801
  norm       = 3.88426
  norm       = 38.7345
  norm       = 3.05472
  Prefactor  = 0.0001
  Prefactor  = 1.15461
  Prefactor  = 67.0739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77936
  Prefactor  = 34.3272
  Normalizat = 0.709274
  Prefactor  = 1.21533
 **********
 **   18 **HESSE 
 **********

 FCN=   7209.970     FROM HESSE     STATUS=OK           399 CALLS     3089 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.856        40.729        .74498E-04   -1.4633    
   2  norm          9.8708        20.013        .12758E-03   -1.5080    
   3  Prefactor     .10000E-03    16.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    78.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.502        19.238        .90710E-04   -1.4824    
   8  Prefactor     .10000E-03    8.0375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.305        19.585        .79640E-04   -1.4701    
  10  Prefactor     .10000E-03    17.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0993        .26927        .20476E-04   -1.5498    
  12  norm          4.5580        2.7630        .10302E-03   -1.5281    
  13  norm          3.8843        4.0459        .84949E-03   -1.5314    
  14  norm          38.735        38.232        .32199E-03   -1.4462    
  15  norm          3.0547        3.8296        .17848E-03   -1.5358    
  16  Prefactor     .10000E-03    17.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1546        126.99        .42695E-03   -1.5493    
  18  Prefactor     67.074        40.509        .49007E-04   -1.4068    
  19  Prefactor     .10000E-03    1.7861        .11033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7794        4.1024        .15406E-03   -1.5271    
  22  Prefactor     34.327        63.792        .68321E-04   -1.4536    
  23  Normalizat    .70927        .27551        .40782E-03   -1.0353    
  24  Prefactor     1.2153        .15012        .18407E-03   -.85861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16244e-10
Minuit parameter uncertainties:
  1  40.7684
  2  20.027
  3  2.70915e-05
  4  3.84125e-05
  5  3.06432e-05
  6  5.71883e-07
  7  19.2441
  8  6.08804e-06
  9  19.59
  10  2.92821e-05
  11  0.269273
  12  2.76311
  13  4.04622
  14  38.2564
  15  3.82988
  16  1.92647e-07
  17  24.2696
  18  40.5261
  19  7.10655e-07
  20  2.38292e-05
  21  4.10259
  22  63.9189
  23  0.276046
  24  0.150171
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  3.884e+00  4.046e+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:  1.215e+00  1.502e-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:  7.093e-01  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 7.83e-09 +/- 8.16e-09
Energy Flux (Fixed Index): 1.79e-05 +/- 1.87e-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) = 7209.76478029
delta logL = 0.20487329201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7209.76319587
delta logL = 0.206457713201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6836       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0828       1.0000          .0000       5.0000    
     3 'Normalizat'    .71111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2153       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=   7209.763     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      197 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6836        4.0322        .52609E-02   -.12511E-02
   2  alpha         1.0833        .71252        .50000       -.16140E-04
   3  Normalizat    .71089        .22906        .91961E-01    .21758E-04
   4  Prefactor     1.2154        .13257        .34279E-01   -.82785E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68362
  alpha      = 1.08333
  Normalizat = 0.710885
  Prefactor  = 1.21541
 **********
 **   18 **HESSE 
 **********

 FCN=   7209.763     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6836        4.0529        .16468E-03   -1.5324    
   2  alpha         1.0833        .73775        .27632E-01   -.60246    
   3  Normalizat    .71089        .25288        .40740E-03   -1.0346    
   4  Prefactor     1.2154        .14694        .18407E-03   -.85858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36792e-09
Minuit parameter uncertainties:
  1  4.05324
  2  0.754514
  3  0.253292
  4  0.146985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54241': 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) = 7209.76319511
delta logL = 0.206458472113

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  3.684e+00  4.053e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.083e+00  7.545e-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:  1.215e+00  1.470e-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:  7.109e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 226.674 8.226
Photon Index (Free Index): 1.08 +/- 0.75
Photon Flux (Free Index): 4.87e-09 +/- 5.61e-09
Energy Flux (Free Index): 3.96e-05 +/- 6.29e-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/54241/cmap_HighResolution_276912001_277171201_4FGL_J1506.6+0813_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.83e-09', energy_flux2='3.96e-05', photon_flux_error='8.16e-09', dlogl='2.06e-01', energy_flux='1.79e-05', photon_flux2='4.87e-09', job_status='DONE', time_completed='2021-09-11 00:30:11.576499', photon_index_error2='0.75', photon_index2='1.08', ts='4.29', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.29e-05', EG='0.71', time_epoch_completed='1631345411.58', return_code='0', job_id='54241', GAL2='1.22', EG2='0.71', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='5.61e-09', ts2='4.70', photon_index='1.60' WHERE bin_id='145' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:30:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 54241: <4FGL_J1506.6+0813_daily_bin145> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin145> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:16:20 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:16:22 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:16:22 2021
Terminated at Sat Sep 11 00:30:12 2021
Results reported at Sat Sep 11 00:30:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin145 226.674 8.2256 276912001 277171201 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 :                                   592.40 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             258.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            832 sec.

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

