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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin347
RA = 226.674, Dec = 8.2256
tmin = 329270401, tmax = 329529601
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='55681', job_status='RUN', time_executed='2021-09-11 00:23:22.942893', time_epoch_executed='1631345002.94' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55681

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55681/ft1_4FGL_J1506.6+0813_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55681/ft2_4FGL_J1506.6+0813_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55681/ft1_4FGL_J1506.6+0813_daily_bin347.fits outfile=/scratch/kocevski/55681/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin347.fits ra=226.674 dec=8.2256 rad=12.0 tmin=329270401.0 tmax=329529601.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.62
user 3.39
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55681/ft1_filtered_4FGL_J1506.6+0813_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/55681/ft2_4FGL_J1506.6+0813_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/55681/ltcube_329270401_329529601_4FGL_J1506.6+0813_daily_bin347.fits outfile=/scratch/kocevski/55681/expmap_329270401_329529601_4FGL_J1506.6+0813_daily_bin347.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/55681/ltcube_329270401_329529601_4FGL_J1506.6+0813_daily_bin347.fits
.....................!
real 190.69
user 184.92
sys 4.96

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/55681/ft1_filtered_4FGL_J1506.6+0813_daily_bin347.fits scfile=/scratch/kocevski/55681/ft2_4FGL_J1506.6+0813_daily_bin347.fits outfile=/scratch/kocevski/55681/cmap_329270401_329529601_4FGL_J1506.6+0813_daily_bin347.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/55681/ft1_filtered_4FGL_J1506.6+0813_daily_bin347.fits scfile=/scratch/kocevski/55681/ft2_4FGL_J1506.6+0813_daily_bin347.fits outfile=/scratch/kocevski/55681/cmap_HighResolution_329270401_329529601_4FGL_J1506.6+0813_daily_bin347.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28974E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0165       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7768       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6748       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.969       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .37915E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3866       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79505       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=   8323.927     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2675 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9482       -.50311E-05** at limit **
   2  norm          .10000E-03    8.7994       -.61578E-05** at limit **
   3  Prefactor     .10000E-03    13.108        .16307E-05** at limit **
   4  Prefactor     .10000E-03    8.1070        .54533E-05** at limit **
   5  norm          .10000E-03    5.7630        .48493E-05** at limit **
   6  Prefactor     .10000E-03    23.101       -.66625E-05** at limit **
   7  Prefactor     8.1568        17.129       -.32350E-05   -.85123E-03
   8  Prefactor     .10000E-03    5.4154       -.89702E-06** at limit **
   9  Prefactor     .10000E-03    22.938       -.67024E-05** at limit **
  10  Prefactor     .10000E-03    110.72       -.21199E-04** at limit **
  11  norm          1.0165        .23126       -.56432E-08    .56212E-03
  12  norm          .10000E-03    .75864       -.41555E-07** at limit **
  13  norm          5.7774        5.4742        .57374E-06    .10976E-02
  14  norm          .10000E-03    17.230        .70491E-05** at limit **
  15  norm          1.6749        1.6276       -.16984E-07    .37684E-03
  16  Prefactor     .10000E-03    25.862       -.21167E-05** at limit **
  17  Prefactor     .10000E-03    59.364       -.92188E-05** at limit **
  18  Prefactor     33.970        38.871        .32335E-06    .14593E-04
  19  Prefactor     .10000E-03    2.7291       -.13763E-07** at limit **
  20  Prefactor     .10000E-03    20.704       -.46401E-05** at limit **
  21  norm          .29231E-01    1.8763       -.50631E-06   -.93936E-04
  22  Prefactor     .10000E-03    32.433        .21212E-04** at limit **
  23  Normalizat    1.3865        .19678        .43265E-06    .17257E-03
  24  Prefactor     .79498        .10345        .11795E-07    .28711E-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  = 8.15681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.01645
  norm       = 0.0001
  norm       = 5.77741
  norm       = 0.0001
  norm       = 1.67489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.9702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0292308
  Prefactor  = 0.0001
  Normalizat = 1.38646
  Prefactor  = 0.794984
 **********
 **   18 **HESSE 
 **********

 FCN=   8323.927     FROM HESSE     STATUS=OK           393 CALLS     3068 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.7658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.7497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1568        17.754        .70197E-03   -1.5137    
   8  Prefactor     .10000E-03    5.4202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    112.12        .21404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0165        .23130        .19831E-04   -1.5506    
  12  norm          .10000E-03    .78635        .15504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7774        5.5184        .83553E-03   -1.5227    
  14  norm          .10000E-03    17.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6749        1.6451        .11182E-03   -1.5449    
  16  Prefactor     .10000E-03    25.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    60.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.970        39.071        .68755E-04   -1.4542    
  19  Prefactor     .10000E-03    2.8126        .29410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .29231E-01    1.7432        .42333E-01   -1.5674    
  22  Prefactor     .10000E-03    31.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3865        .23547        .29051E-03   -.81021    
  24  Prefactor     .79498        .12335        .19968E-03   -.99913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76323e-09
Minuit parameter uncertainties:
  1  3.79115e-07
  2  1.51089e-06
  3  1.13372e-06
  4  1.70831e-06
  5  1.83147e-06
  6  2.6666e-05
  7  17.7656
  8  4.64976e-06
  9  4.24526e-05
  10  0.000537453
  11  0.231303
  12  3.47786e-07
  13  5.51887
  14  4.44256e-07
  15  1.64512
  16  2.21468e-06
  17  7.26179e-05
  18  39.1004
  19  1.58943e-06
  20  1.30348e-05
  21  0.45071
  22  1.10933e-05
  23  0.235659
  24  0.123398
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  5.777e+00  5.519e+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:  7.950e-01  1.234e-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.386e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.16e-08 +/- 1.11e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 2.55e-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) = 8323.40188105
delta logL = 0.525087774169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8323.39828776
delta logL = 0.528681071724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2923       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3599       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79706       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=   8323.398     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      282 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2930        5.1758        .13501E-03   -.56973E-03
   2  alpha         2.3600        .71986        .12563E-01   -.25273E-04
   3  Normalizat    1.3677        .22886        .29188E-03   -.30927E-04
   4  Prefactor     .79706        .12279        .19925E-03    .28985E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.29296
  alpha      = 2.35996
  Normalizat = 1.36767
  Prefactor  = 0.79706
 **********
 **   18 **HESSE 
 **********

 FCN=   8323.398     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2930        4.6352        .54005E-05   -1.5294    
   2  alpha         2.3600        .64634        .50252E-03   -.56044E-01
   3  Normalizat    1.3677        .22871        .11675E-04   -.81568    
   4  Prefactor     .79706        .12285        .79701E-05   -.99837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62038e-11
Minuit parameter uncertainties:
  1  4.63554
  2  0.653787
  3  0.228878
  4  0.122893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55681': 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) = 8323.39828765
delta logL = 0.528681172771

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.293e+00  4.636e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  2.360e+00  6.538e-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:  7.971e-01  1.229e-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.368e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.38
Ra Dec: 226.674 8.226
Photon Index (Free Index): 2.36 +/- 0.65
Photon Flux (Free Index): 3.78e-08 +/- 3.93e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.39e-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/55681/cmap_HighResolution_329270401_329529601_4FGL_J1506.6+0813_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-08', energy_flux2='1.82e-05', photon_flux_error='1.11e-08', dlogl='5.29e-01', energy_flux='2.67e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-09-11 00:34:09.671633', photon_index_error2='0.65', photon_index2='2.36', ts='4.29', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.39', time_epoch_completed='1631345649.67', return_code='0', job_id='55681', GAL2='0.80', EG2='1.37', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='3.93e-08', ts2='5.38', photon_index='1.60' WHERE bin_id='347' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:34:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 55681: <4FGL_J1506.6+0813_daily_bin347> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin347> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:21:19 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:21:21 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:21:21 2021
Terminated at Sat Sep 11 00:34:10 2021
Results reported at Sat Sep 11 00:34:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin347 226.674 8.2256 329270401 329529601 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 :                                   644.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

