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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin392
RA = 226.674, Dec = 8.2256
tmin = 340934401, tmax = 341193601
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='55754', job_status='RUN', time_executed='2021-09-11 00:25:13.367171', time_epoch_executed='1631345113.37' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55754/ft1_4FGL_J1506.6+0813_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55754/ft2_4FGL_J1506.6+0813_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55754/ft1_4FGL_J1506.6+0813_daily_bin392.fits outfile=/scratch/kocevski/55754/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin392.fits ra=226.674 dec=8.2256 rad=12.0 tmin=340934401.0 tmax=341193601.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.39
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55754/ft2_4FGL_J1506.6+0813_daily_bin392.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/55754/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin392.fits evtable="EVENTS" outfile="/scratch/kocevski/55754/ft1_filtered_4FGL_J1506.6+0813_daily_bin392.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/55754/ft1_filtered_4FGL_J1506.6+0813_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/55754/ft2_4FGL_J1506.6+0813_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/55754/ltcube_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.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/55754/ft2_4FGL_J1506.6+0813_daily_bin392.fits
.....................!
real 11.88
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55754/ft1_filtered_4FGL_J1506.6+0813_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/55754/ft2_4FGL_J1506.6+0813_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/55754/ltcube_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.fits outfile=/scratch/kocevski/55754/expmap_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.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/55754/ltcube_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.fits
.....................!
real 190.41
user 185.47
sys 4.61

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/55754/ft1_filtered_4FGL_J1506.6+0813_daily_bin392.fits scfile=/scratch/kocevski/55754/ft2_4FGL_J1506.6+0813_daily_bin392.fits outfile=/scratch/kocevski/55754/cmap_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55754/ft1_filtered_4FGL_J1506.6+0813_daily_bin392.fits scfile=/scratch/kocevski/55754/ft2_4FGL_J1506.6+0813_daily_bin392.fits outfile=/scratch/kocevski/55754/cmap_HighResolution_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.739       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3048       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12060E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.518       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40079E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.684       1.0000         .10000E-03   10000.    
    11 'norm      '    .75979       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5591       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5554       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80676       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.960       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98917       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1457       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=   6968.753     FROM MIGRAD    STATUS=CONVERGED    970 CALLS     3593 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.742        31.954        .67991E-04    .65278E-04
   2  norm          1.3064        97.118        .38648E-03   -.35505E-04
   3  Prefactor     34.298        59.886        .68436E-04    .93892E-04
   4  Prefactor     .10000E-03    9.9559        .18142E-02** at limit **
   5  norm          .10000E-03    4.1745        .16655E-02** at limit **
   6  Prefactor     .10001E-03    14.593        .10207    ** at limit **
   7  Prefactor     .10000E-03    15.763        .18142E-02** at limit **
   8  Prefactor     15.509        19.292        .10167E-03    .27842E-03
   9  Prefactor     .10000E-03    26.154        .10713    ** at limit **
  10  Prefactor     24.680        24.784        .80626E-04    .56684E-04
  11  norm          .75979        .22862        .20819E-04   -.22935E-04
  12  norm          3.5591        2.4182        .10218E-03    .46127E-03
  13  norm          .10000E-03    2.1237        .11878E-02** at limit **
  14  norm          3.5556        85.816        .10718E-02   -.64600E-04
  15  norm          .10000E-03    4.5040        .17098E-02** at limit **
  16  Prefactor     18.567        55.813        .92979E-04    .50033E-04
  17  Prefactor     48.681        51.465        .57475E-04    .12347E-03
  18  Prefactor     44.284        31.808        .60247E-04   -.56912E-04
  19  Prefactor     .80678        4.5908        .33790E-03   -.42100E-03
  20  Prefactor     .10000E-03    10.632        .18142E-02** at limit **
  21  norm          .10001E-03    10.297        .27728E-02** at limit **
  22  Prefactor     37.960        41.068        .65052E-04   -.16428E-05
  23  Normalizat    .98910        .29461        .35475E-03    .11857E-05
  24  Prefactor     1.1457        .16035        .19089E-03    .22326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.742
  norm       = 1.30643
  Prefactor  = 34.2984
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 15.5091
  Prefactor  = 0.000100002
  Prefactor  = 24.6801
  norm       = 0.759789
  norm       = 3.55915
  norm       = 0.0001
  norm       = 3.55558
  norm       = 0.0001
  Prefactor  = 18.5673
  Prefactor  = 48.6813
  Prefactor  = 44.284
  Prefactor  = 0.806779
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 37.9605
  Normalizat = 0.989102
  Prefactor  = 1.14574
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.753     FROM HESSE     STATUS=OK           393 CALLS     3986 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.742        31.947        .13598E-04   -1.4528    
   2  norm          1.3064        97.066        .15459E-04   -1.5479    
   3  Prefactor     34.298        59.884        .13687E-04   -1.4536    
   4  Prefactor     .10000E-03    9.9563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1746        .33309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    14.565        .10223       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.509        19.285        .40670E-05   -1.4920    
   9  Prefactor     .10000E-03    24.809        .11104       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.680        24.782        .16125E-04   -1.4714    
  11  norm          .75979        .22862        .83278E-06   -1.5534    
  12  norm          3.5591        2.4181        .40874E-05   -1.5331    
  13  norm          .10000E-03    2.1238        .23757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5556        85.811        .42870E-04   -1.5331    
  15  norm          .10000E-03    4.5075        .34196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.567        55.811        .18596E-04   -1.4846    
  17  Prefactor     48.681        51.462        .11495E-04   -1.4311    
  18  Prefactor     44.284        31.807        .12049E-04   -1.4376    
  19  Prefactor     .80678        4.5881        .13516E-04   -1.5528    
  20  Prefactor     .10000E-03    10.632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    10.435        .55455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.960        41.066        .13010E-04   -1.4475    
  23  Normalizat    .98910        .29483        .14190E-04   -.93396    
  24  Prefactor     1.1457        .16045        .38179E-04   -.88018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64702e-09
Minuit parameter uncertainties:
  1  31.9623
  2  22.5592
  3  59.9893
  4  7.06276e-05
  5  4.14936e-06
  6  0.000730298
  7  3.98366e-05
  8  19.2925
  9  0.000457088
  10  24.7926
  11  0.228618
  12  2.41812
  13  3.04761e-06
  14  34.9906
  15  4.46043e-05
  16  55.9681
  17  51.5089
  18  31.8192
  19  3.8481
  20  1.53809e-06
  21  0.000770903
  22  41.0967
  23  0.29532
  24  0.16052
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  3.048e-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:  1.146e+00  1.605e-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:  9.891e-01  2.953e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55754/likelihoodResults_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.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) = 6968.75497083
delta logL = -0.0020467618906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6968.75292408
delta logL = -6.9239831646e-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.5912       1.0000          .0000       5.0000    
     3 'Normalizat'    .98910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1457       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=   6968.753     FROM MIGRAD    STATUS=FAILED        89 CALLS      230 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    507.29        .11897E-02** at limit **
   2  alpha         1.4196        3.0533        .18105       -.20408E-07
   3  Normalizat    .98910        .19994        .35475E-03    .56082E-05
   4  Prefactor     1.1457        .11566        .19089E-03    .10839E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6968.753     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      419 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    507.29        .24195E-03** at limit **
   2  alpha         1.4196        3.0533        .19514E-06   -.20408E-07
   3  Normalizat    .98910        .19994        .30979E-07    .56082E-05
   4  Prefactor     1.1457        .11566        .17029E-07    .10839E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6968.753     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      447 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1747        .23795E-03** at limit **
   2  alpha         1.4205        3.8310        .72420E-02    .52433E-07
   3  Normalizat    .98910        .27025        .14190E-04    .56082E-05
   4  Prefactor     1.1457        .15640        .38178E-04    .10899E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.42051
  Normalizat = 0.989105
  Prefactor  = 1.14574
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.753     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1745        .47590E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4205        3.9742        .14484E-02   -.44648    
   3  Normalizat    .98910        .27008        .28380E-05   -.93396    
   4  Prefactor     1.1457        .15633        .76357E-05   -.88018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00907e-11
Minuit parameter uncertainties:
  1  1.00047e-05
  2  167.107
  3  0.270455
  4  0.156394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55754': 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) = 6968.75292352
delta logL = 5.49023752683e-07

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.000e-05  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.421e+00  1.671e+02  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.146e+00  1.564e-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:  9.891e-01  2.705e-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/55754/cmap_HighResolution_340934401_341193601_4FGL_J1506.6+0813_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-05', job_status='DONE', photon_flux_upper_limit='2.47e-08', time_completed='2021-09-11 00:37:26.168239', job_id='55754', GAL2='1.15', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631345846.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='392' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:37:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 55754: <4FGL_J1506.6+0813_daily_bin392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin392 226.674 8.2256 340934401 341193601 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 :                                   731.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

