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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin215
RA = 226.674, Dec = 8.2256
tmin = 295056001, tmax = 295315201
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='54348', job_status='RUN', time_executed='2021-09-11 00:16:39.493879', time_epoch_executed='1631344599.49' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54348/ft1_4FGL_J1506.6+0813_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54348/ft2_4FGL_J1506.6+0813_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54348/ft1_4FGL_J1506.6+0813_daily_bin215.fits outfile=/scratch/kocevski/54348/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin215.fits ra=226.674 dec=8.2256 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.59
user 2.38
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54348/ft1_filtered_4FGL_J1506.6+0813_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/54348/ft2_4FGL_J1506.6+0813_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/54348/ltcube_295056001_295315201_4FGL_J1506.6+0813_daily_bin215.fits outfile=/scratch/kocevski/54348/expmap_295056001_295315201_4FGL_J1506.6+0813_daily_bin215.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/54348/ltcube_295056001_295315201_4FGL_J1506.6+0813_daily_bin215.fits
.....................!
real 190.75
user 185.28
sys 5.13

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/54348/ft1_filtered_4FGL_J1506.6+0813_daily_bin215.fits scfile=/scratch/kocevski/54348/ft2_4FGL_J1506.6+0813_daily_bin215.fits outfile=/scratch/kocevski/54348/cmap_295056001_295315201_4FGL_J1506.6+0813_daily_bin215.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54348/ft1_filtered_4FGL_J1506.6+0813_daily_bin215.fits scfile=/scratch/kocevski/54348/ft2_4FGL_J1506.6+0813_daily_bin215.fits outfile=/scratch/kocevski/54348/cmap_HighResolution_295056001_295315201_4FGL_J1506.6+0813_daily_bin215.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8200       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .68373E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1967       1.0000         .10000E-03   10000.    
    14 'norm      '    18.260       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.297       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36422       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.801       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4386       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84228       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0629       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=   5892.997     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2779 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9509       -.77716E-06** at limit **
   2  norm          .10000E-03    10.721        .27022E-05** at limit **
   3  Prefactor     .10000E-03    53.692       -.20525E-05** at limit **
   4  Prefactor     .10000E-03    21.696        .84894E-06** at limit **
   5  norm          .10000E-03    15.773       -.56478E-05** at limit **
   6  Prefactor     .10000E-03    5.5454        .41137E-07** at limit **
   7  Prefactor     6.8217        25.043       -.30468E-05    .12690E-04
   8  Prefactor     .10000E-03    7.5352        .27377E-07** at limit **
   9  Prefactor     47.496        29.036       -.11426E-06    .11872E-04
  10  Prefactor     .10000E-03    14.859        .59685E-05** at limit **
  11  norm          .68322E-01    .15844       -.12717E-06   -.27512E-02
  12  norm          .10000E-03    1.6129       -.12478E-06** at limit **
  13  norm          4.1971        4.2397        .12252E-06    .22640E-03
  14  norm          18.324        43.028        .15385E-04   -.18276E-05
  15  norm          1.3960        2.8128       -.43052E-06   -.54083E-03
  16  Prefactor     25.093        40.971        .50347E-05    .25159E-04
  17  Prefactor     38.347        43.118        .70242E-05    .24120E-04
  18  Prefactor     .32048        23.474       -.29560E-05    .13362E-03
  19  Prefactor     .10002E-03    2.1202       -.35827E-06** at limit **
  20  Prefactor     30.844        31.141       -.15617E-04    .11338E-04
  21  norm          3.4388        3.7573        .76102E-06   -.20850E-03
  22  Prefactor     .10000E-03    45.282        .10088E-05** at limit **
  23  Normalizat    .84264        .23275        .50656E-06    .26332E-03
  24  Prefactor     1.0627        .12956        .36798E-06    .44390E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.82174
  Prefactor  = 0.0001
  Prefactor  = 47.496
  Prefactor  = 0.0001
  norm       = 0.0683218
  norm       = 0.0001
  norm       = 4.19715
  norm       = 18.3245
  norm       = 1.39604
  Prefactor  = 25.0933
  Prefactor  = 38.3466
  Prefactor  = 0.320484
  Prefactor  = 0.000100019
  Prefactor  = 30.8439
  norm       = 3.4388
  Prefactor  = 0.0001
  Normalizat = 0.842635
  Prefactor  = 1.06273
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.997     FROM HESSE     STATUS=OK           411 CALLS     3190 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5468        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8217        24.910        .15364E-03   -1.5186    
   8  Prefactor     .10000E-03    7.5541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.496        29.065        .58182E-04   -1.4329    
  10  Prefactor     .10000E-03    14.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .68322E-01    .16953        .42466E-03   -1.5656    
  12  norm          .10000E-03    3.6314        .18617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1971        4.2463        .15499E-03   -1.5298    
  14  norm          18.324        42.943        .93729E-04   -1.4852    
  15  norm          1.3960        2.7617        .17648E-03   -1.5472    
  16  Prefactor     25.093        40.943        .79982E-04   -1.4706    
  17  Prefactor     38.347        43.082        .64766E-04   -1.4469    
  18  Prefactor     .32048        31.517        .10288       -1.5595    
  19  Prefactor     .10002E-03    11.541        .21493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.844        31.105        .72195E-04   -1.4597    
  21  norm          3.4388        3.7414        .14896E-03   -1.5337    
  22  Prefactor     .10000E-03    45.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84264        .27566        .33026E-03   -.98506    
  24  Prefactor     1.0627        .15470        .17272E-03   -.90667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00287e-09
Minuit parameter uncertainties:
  1  1.36765e-06
  2  2.0636e-06
  3  1.52533e-05
  4  7.77678e-06
  5  1.09445e-05
  6  9.25301e-07
  7  24.9484
  8  1.64327e-07
  9  29.0732
  10  7.40864e-06
  11  0.169531
  12  2.58477e-05
  13  4.24656
  14  43.0154
  15  2.76194
  16  40.9884
  17  43.1174
  18  6.35879
  19  0.000927109
  20  31.1211
  21  3.7417
  22  1.7126e-05
  23  0.276121
  24  0.15477
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.197e+00  4.247e+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.063e+00  1.548e-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.426e-01  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.37
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 8.46e-09 +/- 8.56e-09
Energy Flux (Fixed Index): 1.94e-05 +/- 1.96e-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) = 5892.38207784
delta logL = 0.615359603937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5892.33941611
delta logL = 0.658021334157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9109       1.0000         .10000E-03   10000.    
     2 'alpha     '    .71273       1.0000          .0000       5.0000    
     3 'Normalizat'    .84518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       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=   5892.339     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9100        2.9782        .59535E-02   -.26751E-03
   2  alpha         .71255        .60875        .50000       -.12284E-04
   3  Normalizat    .84516        .21782        .74514E-01    .24651E-04
   4  Prefactor     1.0630        .12724        .39201E-01    .44871E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90999
  alpha      = 0.712545
  Normalizat = 0.845163
  Prefactor  = 1.06302
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.339     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9100        3.7810        .12845E-03   -1.5367    
   2  alpha         .71255        .70789        .26164E-01   -.79660    
   3  Normalizat    .84516        .25825        .32978E-03   -.98415    
   4  Prefactor     1.0630        .15119        .17269E-03   -.90657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34424e-10
Minuit parameter uncertainties:
  1  3.78126
  2  0.728826
  3  0.258628
  4  0.151248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54348': 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) = 5892.33941608
delta logL = 0.658021368416

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  2.910e+00  3.781e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  7.125e-01  7.288e-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.063e+00  1.512e-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.452e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.68
Ra Dec: 226.674 8.226
Photon Index (Free Index): 0.71 +/- 0.73
Photon Flux (Free Index): 4.35e-09 +/- 4.48e-09
Energy Flux (Free Index): 7.36e-05 +/- 1.05e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/54348/cmap_HighResolution_295056001_295315201_4FGL_J1506.6+0813_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-09', energy_flux2='7.36e-05', photon_flux_error='8.56e-09', dlogl='6.58e-01', energy_flux='1.94e-05', photon_flux2='4.35e-09', job_status='DONE', time_completed='2021-09-11 00:25:52.438716', photon_index_error2='0.73', photon_index2='0.71', ts='6.37', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.05e-04', EG='0.84', time_epoch_completed='1631345152.44', return_code='0', job_id='54348', GAL2='1.06', EG2='0.85', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='4.48e-09', ts2='7.68', photon_index='1.60' WHERE bin_id='215' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:25:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 54348: <4FGL_J1506.6+0813_daily_bin215> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin215> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:16:27 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:16:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:16:29 2021
Terminated at Sat Sep 11 00:25:53 2021
Results reported at Sat Sep 11 00:25:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin215 226.674 8.2256 295056001 295315201 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 :                                   542.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             392.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            566 sec.

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

