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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin955
RA = 226.674, Dec = 8.2256
tmin = 486864001, tmax = 487123201
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='58758', job_status='RUN', time_executed='2021-09-11 00:34:12.112737', time_epoch_executed='1631345652.11' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58758/ft1_4FGL_J1506.6+0813_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58758/ft2_4FGL_J1506.6+0813_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58758/ft1_4FGL_J1506.6+0813_daily_bin955.fits outfile=/scratch/kocevski/58758/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin955.fits ra=226.674 dec=8.2256 rad=12.0 tmin=486864001.0 tmax=487123201.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.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58758/ft1_filtered_4FGL_J1506.6+0813_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/58758/ft2_4FGL_J1506.6+0813_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/58758/ltcube_486864001_487123201_4FGL_J1506.6+0813_daily_bin955.fits outfile=/scratch/kocevski/58758/expmap_486864001_487123201_4FGL_J1506.6+0813_daily_bin955.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/58758/ltcube_486864001_487123201_4FGL_J1506.6+0813_daily_bin955.fits
.....................!
real 191.43
user 186.27
sys 4.80

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/58758/ft1_filtered_4FGL_J1506.6+0813_daily_bin955.fits scfile=/scratch/kocevski/58758/ft2_4FGL_J1506.6+0813_daily_bin955.fits outfile=/scratch/kocevski/58758/cmap_486864001_487123201_4FGL_J1506.6+0813_daily_bin955.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58758/ft1_filtered_4FGL_J1506.6+0813_daily_bin955.fits scfile=/scratch/kocevski/58758/ft2_4FGL_J1506.6+0813_daily_bin955.fits outfile=/scratch/kocevski/58758/cmap_HighResolution_486864001_487123201_4FGL_J1506.6+0813_daily_bin955.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7454       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.895       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4343       1.0000         .10000E-03   10000.    
    12 'norm      '    .27847       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8962       1.0000         .10000E-03   10000.    
    14 'norm      '    12.861       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    124.30       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.487       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17649E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.278       1.0000         .10000E-03   10000.    
    21 'norm      '    .67078E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0517       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0998       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=   7423.024     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2719 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.067       -.14295E-05** at limit **
   2  norm          5.0024        23.567        .35437E-07   -.15204E-04
   3  Prefactor     .10000E-03    22.689        .21350E-05** at limit **
   4  Prefactor     3.7383        35.092       -.54228E-05   -.14294E-03
   5  norm          .10000E-03    23.397        .27605E-05** at limit **
   6  Prefactor     16.896        20.499       -.11371E-06   -.88196E-05
   7  Prefactor     2.6292        46.327        .97269E-05   -.26713E-03
   8  Prefactor     .10000E-03    10.763       -.84233E-06** at limit **
   9  Prefactor     17.370        19.303        .85526E-06    .10078E-03
  10  Prefactor     .10000E-03    12.946        .26100E-05** at limit **
  11  norm          1.4344        .30356       -.30926E-07   -.71519E-03
  12  norm          .27396        1.3465        .13943E-06   -.26928E-03
  13  norm          5.8963        5.9582        .45781E-07    .52296E-04
  14  norm          12.860        28.936       -.79254E-06   -.35045E-04
  15  norm          .10000E-03    1.8824        .14586E-07** at limit **
  16  Prefactor     124.31        61.851        .81184E-06    .65003E-04
  17  Prefactor     .10000E-03    16.560       -.28785E-05** at limit **
  18  Prefactor     28.488        29.078        .32747E-06    .20342E-04
  19  Prefactor     .10000E-03    2.3221        .12077E-06** at limit **
  20  Prefactor     21.274        22.947       -.18689E-05   -.21511E-03
  21  norm          .10000E-03    1.9583        .66794E-07** at limit **
  22  Prefactor     .10000E-03    29.928       -.29980E-05** at limit **
  23  Normalizat    1.0516        .23890       -.93031E-06   -.60118E-04
  24  Prefactor     1.0999        .12610        .18014E-06   -.15525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.00241
  Prefactor  = 0.000100001
  Prefactor  = 3.73829
  norm       = 0.000100004
  Prefactor  = 16.8955
  Prefactor  = 2.62916
  Prefactor  = 0.0001
  Prefactor  = 17.3698
  Prefactor  = 0.000100001
  norm       = 1.43439
  norm       = 0.27396
  norm       = 5.89632
  norm       = 12.8599
  norm       = 0.0001
  Prefactor  = 124.306
  Prefactor  = 0.000100001
  Prefactor  = 28.4875
  Prefactor  = 0.0001
  Prefactor  = 21.2735
  norm       = 0.000100004
  Prefactor  = 0.000100002
  Normalizat = 1.05161
  Prefactor  = 1.09986
 **********
 **   18 **HESSE 
 **********

 FCN=   7423.024     FROM HESSE     STATUS=OK           401 CALLS     3120 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0024        23.578        .17979E-03   -1.5261    
   3  Prefactor     .10000E-03    22.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7383        36.522        .20863E-03   -1.5321    
   5  norm          .10000E-03    24.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.896        20.508        .97440E-04   -1.4886    
   7  Prefactor     2.6292        76.375        .12573E-02   -1.5384    
   8  Prefactor     .10000E-03    10.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.370        19.327        .96108E-04   -1.4874    
  10  Prefactor     .10000E-03    13.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4344        .30497        .20398E-04   -1.5468    
  12  norm          .27396        8.1285        .18307E-02   -1.5603    
  13  norm          5.8963        5.9639        .16538E-03   -1.5222    
  14  norm          12.860        28.955        .11169E-03   -1.4991    
  15  norm          .10000E-03    1.8955        .11536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     124.31        61.878        .36102E-04   -1.3473    
  17  Prefactor     .10000E-03    16.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.488        29.107        .75063E-04   -1.4640    
  19  Prefactor     .10000E-03    4.8433        .25426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.274        23.081        .86831E-04   -1.4785    
  21  norm          .10000E-03    24.420        .23282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0516        .27594        .35878E-03   -.91321    
  24  Prefactor     1.0999        .14545        .19521E-03   -.89471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20357e-09
Minuit parameter uncertainties:
  1  0.000144384
  2  21.7346
  3  0.000277622
  4  23.3874
  5  0.000622444
  6  20.5165
  7  28.3803
  8  7.99817e-05
  9  19.3339
  10  0.000250089
  11  0.304972
  12  2.98444
  13  5.96448
  14  28.9862
  15  6.22365e-08
  16  61.91
  17  0.000315876
  18  29.1218
  19  1.15583e-06
  20  23.0906
  21  0.000590448
  22  0.000438602
  23  0.276317
  24  0.145502
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  5.896e+00  5.964e+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.100e+00  1.455e-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.052e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.20e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 2.75e-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): 102
logL (Free Index) = 7421.42558776
delta logL = 1.59792879342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7421.37633909
delta logL = 1.64717746955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89976       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6207       1.0000          .0000       5.0000    
     3 'Normalizat'    .84911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1572       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=   7421.376     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89720        4.3138        .73877E-02    .83667E-03
   2  alpha         3.6218        1.4553        .13599        .13420E-03
   3  Normalizat    .84894        .79591E-01    .88554E-01    .32156E-04
   4  Prefactor     1.1573        .41231E-01    .35731E-01   -.10702E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.897205
  alpha      = 3.62181
  Normalizat = 0.848943
  Prefactor  = 1.15731
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.376     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89720        7.3109        .33013E-04   -1.5519    
   2  alpha         3.6218        3.7246        .56213E-02    .46534    
   3  Normalizat    .84894        .30940        .39220E-03   -.98278    
   4  Prefactor     1.1573        .15275        .19024E-03   -.87655    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05464e-07
Minuit parameter uncertainties:
  1  5.12284
  2  2.29016
  3  0.310043
  4  0.152804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58758': 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): 102
logL (Free Index) = 7421.37633834
delta logL = 1.64717821818

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  8.972e-01  5.123e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  3.622e+00  2.290e+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:  1.157e+00  1.528e-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:  8.489e-01  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 226.674 8.226
Photon Index (Free Index): 3.62 +/- 2.29
Photon Flux (Free Index): 2.20e-07 +/- 2.00e-07
Energy Flux (Free Index): 4.10e-05 +/- 1.75e-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/58758/cmap_HighResolution_486864001_487123201_4FGL_J1506.6+0813_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='4.10e-05', photon_flux_error='1.20e-08', dlogl='1.65e+00', energy_flux='2.72e-05', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-11 00:44:43.666805', photon_index_error2='2.29', photon_index2='3.62', ts='4.47', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.05', time_epoch_completed='1631346283.67', return_code='0', job_id='58758', GAL2='1.16', EG2='0.85', return_code2='102', energy_flux_error='2.75e-05', photon_flux_error2='2.00e-07', ts2='8.20', photon_index='1.60' WHERE bin_id='955' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:44:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 58758: <4FGL_J1506.6+0813_daily_bin955> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin955> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:31:26 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:31:27 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:31:27 2021
Terminated at Sat Sep 11 00:44:44 2021
Results reported at Sat Sep 11 00:44:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin955 226.674 8.2256 486864001 487123201 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 :                                   623.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

