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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin874
RA = 226.674, Dec = 8.2256
tmin = 465868801, tmax = 466128001
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='58640', job_status='RUN', time_executed='2021-09-11 00:34:46.945082', time_epoch_executed='1631345686.95' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='874'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58640/ft1_4FGL_J1506.6+0813_daily_bin874.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58640/ft2_4FGL_J1506.6+0813_daily_bin874.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58640/ft1_4FGL_J1506.6+0813_daily_bin874.fits outfile=/scratch/kocevski/58640/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin874.fits ra=226.674 dec=8.2256 rad=12.0 tmin=465868801.0 tmax=466128001.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.93
user 3.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58640/ft1_filtered_4FGL_J1506.6+0813_daily_bin874.fits" evtable="EVENTS" scfile=/scratch/kocevski/58640/ft2_4FGL_J1506.6+0813_daily_bin874.fits sctable="SC_DATA" outfile=/scratch/kocevski/58640/ltcube_465868801_466128001_4FGL_J1506.6+0813_daily_bin874.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/58640/ft2_4FGL_J1506.6+0813_daily_bin874.fits
.....................!
real 11.93
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58640/ft1_filtered_4FGL_J1506.6+0813_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/58640/ft2_4FGL_J1506.6+0813_daily_bin874.fits sctable="SC_DATA" expcube=/scratch/kocevski/58640/ltcube_465868801_466128001_4FGL_J1506.6+0813_daily_bin874.fits outfile=/scratch/kocevski/58640/expmap_465868801_466128001_4FGL_J1506.6+0813_daily_bin874.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/58640/ltcube_465868801_466128001_4FGL_J1506.6+0813_daily_bin874.fits
.....................!
real 189.78
user 185.34
sys 4.09

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/58640/ft1_filtered_4FGL_J1506.6+0813_daily_bin874.fits scfile=/scratch/kocevski/58640/ft2_4FGL_J1506.6+0813_daily_bin874.fits outfile=/scratch/kocevski/58640/cmap_465868801_466128001_4FGL_J1506.6+0813_daily_bin874.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/58640/ft1_filtered_4FGL_J1506.6+0813_daily_bin874.fits scfile=/scratch/kocevski/58640/ft2_4FGL_J1506.6+0813_daily_bin874.fits outfile=/scratch/kocevski/58640/cmap_HighResolution_465868801_466128001_4FGL_J1506.6+0813_daily_bin874.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36654E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.370       1.0000         .10000E-03   10000.    
     5 'norm      '    .17128E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.192       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9297       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0157       1.0000         .10000E-03   10000.    
    13 'norm      '    19.834       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    151.15       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2791       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81142       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1042       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=   7325.866     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2689 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3390        .10814E-06** at limit **
   2  norm          .10000E-03    9.9688        .12993E-06** at limit **
   3  Prefactor     .10000E-03    131.87       -.35193E-05** at limit **
   4  Prefactor     51.363        43.819       -.24526E-07   -.78608E-04
   5  norm          .10000E-03    30.332       -.29265E-06** at limit **
   6  Prefactor     .10000E-03    25.953       -.18412E-05** at limit **
   7  Prefactor     .10000E-03    8.1754       -.17786E-06** at limit **
   8  Prefactor     34.108        22.570        .34868E-06    .20948E-04
   9  Prefactor     11.199        26.823        .68370E-06    .25000E-04
  10  Prefactor     .10000E-03    29.723        .34542E-07** at limit **
  11  norm          1.9297        .32710        .85371E-08   -.35166E-03
  12  norm          1.0148        2.9964        .10986E-05   -.18082E-03
  13  norm          19.834        9.4074       -.17434E-08   -.62415E-05
  14  norm          .10000E-03    17.390        .67478E-06** at limit **
  15  norm          5.2974        5.1703        .21517E-06    .17788E-03
  16  Prefactor     .10002E-03    59.523        .81380E-05** at limit **
  17  Prefactor     .10002E-03    80.474       -.86471E-05** at limit **
  18  Prefactor     151.17        52.519        .21666E-05    .26212E-03
  19  Prefactor     5.2791        4.3948        .23561E-05   -.96765E-03
  20  Prefactor     .10000E-03    13.058       -.60133E-06** at limit **
  21  norm          2.1316        2.5126        .35659E-07   -.31249E-04
  22  Prefactor     .10000E-03    17.441        .65212E-06** at limit **
  23  Normalizat    .81101        .26039       -.24094E-05   -.30323E-04
  24  Prefactor     1.1044        .13382       -.34775E-06   -.45528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 51.3626
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 34.1083
  Prefactor  = 11.1988
  Prefactor  = 0.0001
  norm       = 1.92974
  norm       = 1.01483
  norm       = 19.8343
  norm       = 0.0001
  norm       = 5.29741
  Prefactor  = 0.000100017
  Prefactor  = 0.000100019
  Prefactor  = 151.172
  Prefactor  = 5.27909
  Prefactor  = 0.0001
  norm       = 2.13161
  Prefactor  = 0.0001
  Normalizat = 0.811013
  Prefactor  = 1.10436
 **********
 **   18 **HESSE 
 **********

 FCN=   7325.866     FROM HESSE     STATUS=OK           389 CALLS     3078 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.9794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    132.83        .21303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     51.363        43.834        .55956E-04   -1.4273    
   5  norm          .10000E-03    30.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.108        22.588        .68624E-04   -1.4539    
   9  Prefactor     11.199        26.779        .11975E-03   -1.5039    
  10  Prefactor     .10000E-03    29.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9297        .32762        .19025E-04   -1.5430    
  12  norm          1.0148        2.9700        .22483E-03   -1.5506    
  13  norm          19.834        9.4088        .89934E-04   -1.4817    
  14  norm          .10000E-03    17.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2974        5.1192        .17462E-03   -1.5248    
  16  Prefactor     .10002E-03    62.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    84.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     151.17        53.073        .16392E-03   -1.3243    
  19  Prefactor     5.2791        4.5277        .80864E-03   -1.5248    
  20  Prefactor     .10000E-03    13.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1316        2.5042        .14346E-03   -1.5416    
  22  Prefactor     .10000E-03    17.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81101        .29217        .40634E-03   -.99661    
  24  Prefactor     1.1044        .15213        .19598E-03   -.89327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10527e-09
Minuit parameter uncertainties:
  1  1.60696e-05
  2  1.98486e-05
  3  0.000937032
  4  43.8619
  5  0.00017462
  6  0.00029929
  7  8.00566e-06
  8  22.5936
  9  26.8079
  10  1.36698e-05
  11  0.327618
  12  2.97044
  13  9.40951
  14  9.63836e-05
  15  5.11962
  16  0.00205063
  17  0.00250596
  18  53.0895
  19  4.52798
  20  6.97411e-05
  21  2.50436
  22  9.47226e-05
  23  0.292738
  24  0.152192
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.983e+01  9.410e+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.104e+00  1.522e-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.110e-01  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.34
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 9.15e-05 +/- 4.34e-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) = 7325.70997969
delta logL = 0.155593544236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7325.69936053
delta logL = 0.166212703882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.448       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8648       1.0000          .0000       5.0000    
     3 'Normalizat'    .79969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1048       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=   7325.699     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.448        173.84        .23313E-02    .55596E-03
   2  alpha         1.8648        3.1982        .22412        .64304E-04
   3  Normalizat    .79967        .25861        .92245E-01    .32588E-04
   4  Prefactor     1.1048        .79103E-01    .37406E-01   -.72229E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 18.4475
  alpha      = 1.86477
  Normalizat = 0.79967
  Prefactor  = 1.10484
 **********
 **   18 **HESSE 
 **********

 FCN=   7325.699     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.448        9.4615        .93251E-04   -1.4849    
   2  alpha         1.8648        .46094        .11534E-01   -.25691    
   3  Normalizat    .79967        .26561        .40864E-03   -1.0008    
   4  Prefactor     1.1048        .14789        .19580E-03   -.89312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99518e-09
Minuit parameter uncertainties:
  1  9.46229
  2  0.463775
  3  0.266041
  4  0.147942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58640': 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) = 7325.69936052
delta logL = 0.166212709932

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.845e+01  9.462e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.865e+00  4.638e-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.105e+00  1.479e-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.997e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.67
Ra Dec: 226.674 8.226
Photon Index (Free Index): 1.86 +/- 0.46
Photon Flux (Free Index): 5.73e-08 +/- 4.28e-08
Energy Flux (Free Index): 6.91e-05 +/- 4.37e-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/58640/cmap_HighResolution_465868801_466128001_4FGL_J1506.6+0813_daily_bin874.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='6.91e-05', photon_flux_error='1.90e-08', dlogl='1.66e-01', energy_flux='9.15e-05', photon_flux2='5.73e-08', job_status='DONE', time_completed='2021-09-11 00:44:54.253694', photon_index_error2='0.46', photon_index2='1.86', ts='28.34', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='0.81', time_epoch_completed='1631346294.25', return_code='0', job_id='58640', GAL2='1.10', EG2='0.80', return_code2='0', energy_flux_error='4.34e-05', photon_flux_error2='4.28e-08', ts2='28.67', photon_index='1.60' WHERE bin_id='874' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 58640: <4FGL_J1506.6+0813_daily_bin874> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin874 226.674 8.2256 465868801 466128001 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 :                                   603.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

