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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin923
RA = 226.674, Dec = 8.2256
tmin = 478569601, tmax = 478828801
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='58711', job_status='RUN', time_executed='2021-09-11 00:33:58.917822', time_epoch_executed='1631345638.92' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58711/ft1_4FGL_J1506.6+0813_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58711/ft2_4FGL_J1506.6+0813_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58711/ft1_4FGL_J1506.6+0813_daily_bin923.fits outfile=/scratch/kocevski/58711/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin923.fits ra=226.674 dec=8.2256 rad=12.0 tmin=478569601.0 tmax=478828801.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.46
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58711/ft1_filtered_4FGL_J1506.6+0813_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/58711/ft2_4FGL_J1506.6+0813_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/58711/ltcube_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.fits outfile=/scratch/kocevski/58711/expmap_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.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/58711/ltcube_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.fits
.....................!
real 191.27
user 185.26
sys 5.26

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/58711/ft1_filtered_4FGL_J1506.6+0813_daily_bin923.fits scfile=/scratch/kocevski/58711/ft2_4FGL_J1506.6+0813_daily_bin923.fits outfile=/scratch/kocevski/58711/cmap_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.674 yref=8.2256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58711/ft1_filtered_4FGL_J1506.6+0813_daily_bin923.fits scfile=/scratch/kocevski/58711/ft2_4FGL_J1506.6+0813_daily_bin923.fits outfile=/scratch/kocevski/58711/cmap_HighResolution_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.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/58711/ft1_filtered_4FGL_J1506.6+0813_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/58711/ft2_4FGL_J1506.6+0813_daily_bin923.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58711/Model_4FGL_J1506.6+0813_daily_bin923.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/58711/ft1_filtered_4FGL_J1506.6+0813_daily_bin923.fits.....................!
real 56.31
user 54.93
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58711/ft1_filtered_4FGL_J1506.6+0813_daily_bin923.fits', '/scratch/kocevski/58711/ft2_4FGL_J1506.6+0813_daily_bin923.fits', expMap='/scratch/kocevski/58711/expmap_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.fits', expCube='/scratch/kocevski/58711/ltcube_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58711/Model_4FGL_J1506.6+0813_daily_bin923.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/58711/ft1_filtered_4FGL_J1506.6+0813_daily_bin923.fits
Spacecraft file(s): /scratch/kocevski/58711/ft2_4FGL_J1506.6+0813_daily_bin923.fits
Exposure map: /scratch/kocevski/58711/expmap_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.fits
Exposure cube: /scratch/kocevski/58711/ltcube_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58711/Model_4FGL_J1506.6+0813_daily_bin923.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7237.10019978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.235       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9644       1.0000         .10000E-03   10000.    
     5 'norm      '    .64020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7231       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2934       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4229       1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4886       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .58111       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.788       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6480       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7237.097     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     3516 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.229        28.861        .89040E-04    .69458E-04
   2  norm          .10000E-03    11.693        .18142E-02** at limit **
   3  Prefactor     .10000E-03    27.645        .18142E-02** at limit **
   4  Prefactor     3.9483        46.464        .20258E-03    .12840E-03
   5  norm          .10000E-03    17.697        .95054E-01** at limit **
   6  Prefactor     .10000E-03    16.884        .18142E-02** at limit **
   7  Prefactor     1.7200        64.575        .31997E-03    .23095E-05
   8  Prefactor     2.1758        35.429        .28009E-03   -.25977E-04
   9  Prefactor     1.2679        85.174        .38914E-03    .13935E-04
  10  Prefactor     .10000E-03    18.836        .18142E-02** at limit **
  11  norm          2.4229        .33951        .17483E-04    .18933E-02
  12  norm          .10000E-03    3.0504        .19802E-02** at limit **
  13  norm          .10000E-03    2.3694        .12782E-02** at limit **
  14  norm          .10000E-03    16.104        .18142E-02** at limit **
  15  norm          .10000E-03    3.9622        .16292E-02** at limit **
  16  Prefactor     .10000E-03    35.927        .18142E-02** at limit **
  17  Prefactor     .10000E-03    47.286        .18142E-02** at limit **
  18  Prefactor     7.4806        25.666        .14655E-03    .64153E-04
  19  Prefactor     .10000E-03    1.6423        .10609E-02** at limit **
  20  Prefactor     .10000E-03    10.012        .18142E-02** at limit **
  21  norm          .58087        1.9305        .20086E-02    .45401E-03
  22  Prefactor     16.789        29.777        .97750E-04    .17678E-04
  23  Normalizat    1.6480        .26590        .28620E-03    .76357E-03
  24  Prefactor     .71556        .13789        .22202E-03    .47100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2289
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.94825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.72005
  Prefactor  = 2.17576
  Prefactor  = 1.26786
  Prefactor  = 0.000100001
  norm       = 2.42288
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.48055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.580873
  Prefactor  = 16.7894
  Normalizat = 1.64801
  Prefactor  = 0.715562
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.097     FROM HESSE     STATUS=OK           385 CALLS     3901 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.229        28.859        .35616E-05   -1.4808    
   2  norm          .10000E-03    11.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9483        46.014        .81033E-05   -1.5311    
   5  norm          .10000E-03    17.231        .96515E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7200        64.549        .12799E-04   -1.5446    
   8  Prefactor     2.1758        35.389        .11204E-04   -1.5413    
   9  Prefactor     1.2679        85.082        .15566E-04   -1.5483    
  10  Prefactor     .10000E-03    18.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4229        .33950        .34966E-05   -1.5397    
  12  norm          .10000E-03    3.0640        .39605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3695        .25564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9659        .32584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4806        25.659        .58622E-05   -1.5161    
  19  Prefactor     .10000E-03    1.6424        .21217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.012        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .58087        1.9279        .80344E-04   -1.5556    
  22  Prefactor     16.789        29.775        .39100E-05   -1.4888    
  23  Normalizat    1.6480        .26608        .57240E-04   -.73700    
  24  Prefactor     .71556        .13801        .44405E-04   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71322e-09
Minuit parameter uncertainties:
  1  28.8785
  2  4.54384e-05
  3  0.000293739
  4  26.9829
  5  2.43146e-05
  6  6.91541e-05
  7  21.0979
  8  17.5617
  9  20.8023
  10  0.000282638
  11  0.3395
  12  0.000193444
  13  1.30316e-06
  14  0.000209741
  15  2.11152e-06
  16  0.000558407
  17  0.000215295
  18  25.6972
  19  2.23888e-06
  20  3.06345e-06
  21  1.92806
  22  29.8016
  23  0.266306
  24  0.138072
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.303e-06  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:  7.156e-01  1.381e-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.648e+00  2.663e-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: 2.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58711/likelihoodResults_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.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) = 7237.09900472
delta logL = -0.00190042644135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7237.0971043
delta logL = -3.31965566147e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7236.863     FROM MIGRAD    STATUS=FAILED       147 CALLS      290 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57910E-02    .82646E-02    .20445E-02   -.17055E-01
   2  alpha         4.8898        3.0374        .50000        .12507E-03
   3  Normalizat    1.5900        .28893        .28620E-03    .43298E-05
   4  Prefactor     .73367        .14399        .22202E-03    .87049E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7236.863     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      359 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57910E-02    .82646E-02    .75811E-05   -1.5723    
   2  alpha         4.8898        3.0374        .50425E-02    8.1520    
   3  Normalizat    1.5900        .28893        .17489E-03   -.75281    
   4  Prefactor     .73367        .14399        .75123E-04   -1.0222    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7236.863     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      402 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57910E-02    .12205E-01     .0000       -.68510E-01
   2  alpha         4.8898        1.0659         .0000        .49905E-03
   3  Normalizat    1.5900        .27016         .0000        .43695E-05
   4  Prefactor     .73367        .14042         .0000        .87049E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.005791
  alpha      = 4.88984
  Normalizat = 1.58997
  Prefactor  = 0.733668
 **********
 **   18 **HESSE 
 **********

 FCN=   7236.863     FROM HESSE     STATUS=OK            27 CALLS      429 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57910E-02    .25095E-01    .17533E-04   -1.5723    
   2  alpha         4.8898        3.6931        .18374E-01    8.1520    
   3  Normalizat    1.5900        .26744        .22896E-05   -.75281    
   4  Prefactor     .73367        .13989        .17762E-05   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07114e-10
Minuit parameter uncertainties:
  1  0.0239011
  2  1.37049
  3  0.267682
  4  0.139962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58711': 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) = 7236.86325427
delta logL = 0.23385002786

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  5.791e-03  2.390e-02  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  4.890e+00  1.370e+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:  7.337e-01  1.400e-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.590e+00  2.677e-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/58711/cmap_HighResolution_478569601_478828801_4FGL_J1506.6+0813_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-05', job_status='DONE', photon_flux_upper_limit='2.64e-08', time_completed='2021-09-11 00:46:31.746822', job_id='58711', GAL2='0.73', fit_tolerance='1e-08', EG2='1.59', EG='1.65', time_epoch_completed='1631346391.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.34e-01', ts2='0.50', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='923' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 58711: <4FGL_J1506.6+0813_daily_bin923> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin923 226.674 8.2256 478569601 478828801 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 :                                   748.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

