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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin704
RA = 226.674, Dec = 8.2256
tmin = 421804801, tmax = 422064001
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='57325', job_status='RUN', time_executed='2021-09-11 00:28:36.447533', time_epoch_executed='1631345316.45' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57325

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57325/ft1_4FGL_J1506.6+0813_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57325/ft2_4FGL_J1506.6+0813_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57325/ft1_4FGL_J1506.6+0813_daily_bin704.fits outfile=/scratch/kocevski/57325/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin704.fits ra=226.674 dec=8.2256 rad=12.0 tmin=421804801.0 tmax=422064001.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.57
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57325/ft1_filtered_4FGL_J1506.6+0813_daily_bin704.fits" evtable="EVENTS" scfile=/scratch/kocevski/57325/ft2_4FGL_J1506.6+0813_daily_bin704.fits sctable="SC_DATA" outfile=/scratch/kocevski/57325/ltcube_421804801_422064001_4FGL_J1506.6+0813_daily_bin704.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/57325/ft2_4FGL_J1506.6+0813_daily_bin704.fits
.....................!
real 11.62
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57325/ft1_filtered_4FGL_J1506.6+0813_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/57325/ft2_4FGL_J1506.6+0813_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/57325/ltcube_421804801_422064001_4FGL_J1506.6+0813_daily_bin704.fits outfile=/scratch/kocevski/57325/expmap_421804801_422064001_4FGL_J1506.6+0813_daily_bin704.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/57325/ltcube_421804801_422064001_4FGL_J1506.6+0813_daily_bin704.fits
.....................!
real 190.74
user 185.56
sys 4.84

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/57325/ft1_filtered_4FGL_J1506.6+0813_daily_bin704.fits scfile=/scratch/kocevski/57325/ft2_4FGL_J1506.6+0813_daily_bin704.fits outfile=/scratch/kocevski/57325/cmap_421804801_422064001_4FGL_J1506.6+0813_daily_bin704.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57325/ft1_filtered_4FGL_J1506.6+0813_daily_bin704.fits scfile=/scratch/kocevski/57325/ft2_4FGL_J1506.6+0813_daily_bin704.fits outfile=/scratch/kocevski/57325/cmap_HighResolution_421804801_422064001_4FGL_J1506.6+0813_daily_bin704.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/57325/ft1_filtered_4FGL_J1506.6+0813_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/57325/ft2_4FGL_J1506.6+0813_daily_bin704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57325/Model_4FGL_J1506.6+0813_daily_bin704.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/57325/ft1_filtered_4FGL_J1506.6+0813_daily_bin704.fits.....................!
real 60.13
user 58.25
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.157       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.982       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .45581       1.0000         .10000E-03   10000.    
    12 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1588       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3536       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.740       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.970       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .43506E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89304       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0421       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=   7957.194     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2762 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6983        .61627E-07** at limit **
   2  norm          .10000E-03    14.644        .14218E-06** at limit **
   3  Prefactor     .10000E-03    13.601        .10161E-06** at limit **
   4  Prefactor     .10000E-03    19.590       -.56316E-07** at limit **
   5  norm          14.154        17.300       -.10545E-06   -.15771E-04
   6  Prefactor     .10000E-03    8.9382       -.26822E-06** at limit **
   7  Prefactor     .10000E-03    26.279        .38315E-06** at limit **
   8  Prefactor     .10000E-03    8.0980       -.19550E-06** at limit **
   9  Prefactor     21.969        30.287        .35360E-06   -.23063E-04
  10  Prefactor     .10000E-03    14.931       -.26219E-06** at limit **
  11  norm          .45585        .17600        .11131E-07   -.29948E-03
  12  norm          .10000E-03    .95242        .26491E-06** at limit **
  13  norm          4.1590        4.0813       -.99586E-07   -.24983E-04
  14  norm          .10000E-03    32.741       -.51630E-07** at limit **
  15  norm          3.3528        2.8113       -.61613E-07   -.16599E-03
  16  Prefactor     33.699        60.233       -.21299E-07   -.36580E-04
  17  Prefactor     .10000E-03    8.8393        .18249E-07** at limit **
  18  Prefactor     66.973        43.488        .26397E-06   -.96918E-05
  19  Prefactor     1.1832        3.7655        .20219E-05   -.37236E-04
  20  Prefactor     .10000E-03    6.2643        .20321E-07** at limit **
  21  norm          .10000E-03    2.5971        .11781E-06** at limit **
  22  Prefactor     .10000E-03    177.40       -.20742E-05** at limit **
  23  Normalizat    .89319        .20697        .28820E-06   -.18780E-03
  24  Prefactor     1.0419        .11391       -.10260E-05   -.16421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9689
  Prefactor  = 0.0001
  norm       = 0.455851
  norm       = 0.0001
  norm       = 4.15896
  norm       = 0.0001
  norm       = 3.35281
  Prefactor  = 33.6989
  Prefactor  = 0.0001
  Prefactor  = 66.9726
  Prefactor  = 1.18316
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.893195
  Prefactor  = 1.04193
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.194     FROM HESSE     STATUS=OK           391 CALLS     3153 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.154        17.295        .10645E-03   -1.4955    
   6  Prefactor     .10000E-03    8.9395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.969        30.342        .85432E-04   -1.4770    
  10  Prefactor     .10000E-03    14.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .45585        .17458        .22209E-04   -1.5573    
  12  norm          .10000E-03    3.5754        .16268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1590        4.0876        .17406E-03   -1.5300    
  14  norm          .10000E-03    32.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3528        2.7936        .13187E-03   -1.5342    
  16  Prefactor     33.699        60.310        .68987E-04   -1.4546    
  17  Prefactor     .10000E-03    8.8413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     66.973        43.565        .49045E-04   -1.4069    
  19  Prefactor     1.1832        3.7650        .29080E-03   -1.5490    
  20  Prefactor     .10000E-03    6.2657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7188        .28082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    179.72        .21225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89319        .24067        .34212E-03   -.96700    
  24  Prefactor     1.0419        .13068        .17808E-03   -.91345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92263e-10
Minuit parameter uncertainties:
  1  2.25451e-07
  2  1.09951e-05
  3  1.77744e-05
  4  1.95784e-05
  5  17.3007
  6  1.32718e-06
  7  4.10729e-05
  8  1.25198e-05
  9  30.3632
  10  3.21338e-06
  11  0.174583
  12  6.25485e-05
  13  4.08791
  14  4.50019e-05
  15  2.79372
  16  60.4193
  17  3.84122e-06
  18  43.5862
  19  3.76576
  20  2.24932e-07
  21  2.97382e-06
  22  0.000844042
  23  0.240955
  24  0.130718
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.159e+00  4.088e+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.042e+00  1.307e-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.932e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.46
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 8.39e-09 +/- 8.24e-09
Energy Flux (Fixed Index): 1.92e-05 +/- 1.89e-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) = 7955.23757859
delta logL = 1.95639482172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7954.58650043
delta logL = 2.60747298594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74503       1.0000         .10000E-03   10000.    
     2 'alpha     '    .66898E-07   1.0000          .0000       5.0000    
     3 'Normalizat'    .89235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0444       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=   7954.587     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      230 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74518        1.0645        .12233E-01   -.45194E-03
   2  alpha         .11651E-09    1.1455        .46267    ** at limit **
   3  Normalizat    .89240        .19568        .77321E-01    .20486E-04
   4  Prefactor     1.0444        .10979        .40249E-01    .48266E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.74518
  alpha      = 1.16508e-10
  Normalizat = 0.892402
  Prefactor  = 1.04437
 **********
 **   18 **HESSE 
 **********

 FCN=   7954.587     FROM HESSE     STATUS=OK            35 CALLS      265 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74518        .74421        .67746E-03   -1.5535    
   2  alpha         .11651E-09    3.2305        .54833E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89240        .22961        .34223E-03   -.96728    
   4  Prefactor     1.0444        .12910        .17788E-03   -.91265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49286e-10
Minuit parameter uncertainties:
  1  0.744222
  2  2.75678e-05
  3  0.229866
  4  0.129136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57325': 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) = 7954.58650036
delta logL = 2.60747305303

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  7.452e-01  7.442e-01  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.165e-10  2.757e-05  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.044e+00  1.291e-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.924e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.67
Ra Dec: 226.674 8.226
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.48e-09 +/- 3.47e-09
Energy Flux (Free Index): 1.33e-04 +/- 1.32e-04

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/57325/cmap_HighResolution_421804801_422064001_4FGL_J1506.6+0813_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.39e-09', energy_flux2='1.33e-04', photon_flux_error='8.24e-09', dlogl='2.61e+00', energy_flux='1.92e-05', photon_flux2='3.48e-09', job_status='DONE', time_completed='2021-09-11 00:38:59.485837', photon_index_error2='0.00', photon_index2='0.00', ts='12.46', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.32e-04', EG='0.89', time_epoch_completed='1631345939.49', return_code='0', job_id='57325', GAL2='1.04', EG2='0.89', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='3.47e-09', ts2='17.67', photon_index='1.60' WHERE bin_id='704' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:38:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 57325: <4FGL_J1506.6+0813_daily_bin704> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin704> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 00:26:14 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:26:15 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:26:15 2021
Terminated at Sat Sep 11 00:38:59 2021
Results reported at Sat Sep 11 00:38:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin704 226.674 8.2256 421804801 422064001 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            765 sec.

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

