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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin936
RA = 226.674, Dec = 8.2256
tmin = 481939201, tmax = 482198401
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='58730', job_status='RUN', time_executed='2021-09-11 00:34:46.590523', time_epoch_executed='1631345686.59' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58730/ft1_4FGL_J1506.6+0813_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58730/ft2_4FGL_J1506.6+0813_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58730/ft1_4FGL_J1506.6+0813_daily_bin936.fits outfile=/scratch/kocevski/58730/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin936.fits ra=226.674 dec=8.2256 rad=12.0 tmin=481939201.0 tmax=482198401.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.60
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58730/ft1_filtered_4FGL_J1506.6+0813_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/58730/ft2_4FGL_J1506.6+0813_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/58730/ltcube_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.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/58730/ft2_4FGL_J1506.6+0813_daily_bin936.fits
.....................!
real 11.75
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58730/ft1_filtered_4FGL_J1506.6+0813_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/58730/ft2_4FGL_J1506.6+0813_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/58730/ltcube_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.fits outfile=/scratch/kocevski/58730/expmap_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.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/58730/ltcube_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.fits
.....................!
real 190.55
user 185.13
sys 5.07

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/58730/ft1_filtered_4FGL_J1506.6+0813_daily_bin936.fits scfile=/scratch/kocevski/58730/ft2_4FGL_J1506.6+0813_daily_bin936.fits outfile=/scratch/kocevski/58730/cmap_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.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.60
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58730/ft1_filtered_4FGL_J1506.6+0813_daily_bin936.fits scfile=/scratch/kocevski/58730/ft2_4FGL_J1506.6+0813_daily_bin936.fits outfile=/scratch/kocevski/58730/cmap_HighResolution_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    149.18       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4989       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36548E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8140       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9840       1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .88135       1.0000         .10000E-03   10000.    
    14 'norm      '    33.271       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31098E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.447       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8513       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3924       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0248       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=   8086.786     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2739 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.447        .31381E-07** at limit **
   2  norm          .10000E-03    7.1982        .73315E-08** at limit **
   3  Prefactor     149.20        73.016        .93451E-07    .41426E-04
   4  Prefactor     .10000E-03    25.482        .58448E-07** at limit **
   5  norm          6.5091        16.894        .97899E-07    .31836E-04
   6  Prefactor     7.9376        20.903        .18986E-06    .56157E-05
   7  Prefactor     .10073E-03    22.267       -.85866E-06** at limit **
   8  Prefactor     .10000E-03    14.330        .10004E-06** at limit **
   9  Prefactor     .10000E-03    11.444        .92126E-07** at limit **
  10  Prefactor     2.7892        162.32        .17909E-05    .84399E-05
  11  norm          1.9840        .31838       -.13969E-07    .36768E-03
  12  norm          .10000E-03    .78258       -.26869E-07** at limit **
  13  norm          .88200        5.8435        .35073E-05   -.10092E-03
  14  norm          33.271        36.482        .44159E-07    .26562E-05
  15  norm          4.0597        2.8263       -.18812E-07    .10405E-04
  16  Prefactor     .10003E-03    160.75        .53353E-05** at limit **
  17  Prefactor     67.432        51.788       -.20395E-06   -.32442E-04
  18  Prefactor     .10000E-03    30.042        .14997E-06** at limit **
  19  Prefactor     4.8520        3.9398        .38537E-07   -.13290E-04
  20  Prefactor     .10000E-03    13.433        .57369E-08** at limit **
  21  norm          3.3926        3.5603        .98416E-07   -.23102E-04
  22  Prefactor     .10000E-03    71.340       -.22287E-06** at limit **
  23  Normalizat    1.0088        .22685        .21977E-06    .14691E-04
  24  Prefactor     1.0247        .12030       -.66784E-07    .38425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 149.195
  Prefactor  = 0.0001
  norm       = 6.50913
  Prefactor  = 7.93764
  Prefactor  = 0.000100727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7892
  norm       = 1.98401
  norm       = 0.0001
  norm       = 0.881998
  norm       = 33.2715
  norm       = 4.05968
  Prefactor  = 0.000100026
  Prefactor  = 67.4322
  Prefactor  = 0.0001
  Prefactor  = 4.85196
  Prefactor  = 0.0001
  norm       = 3.39256
  Prefactor  = 0.0001
  Normalizat = 1.00884
  Prefactor  = 1.02474
 **********
 **   18 **HESSE 
 **********

 FCN=   8086.786     FROM HESSE     STATUS=OK           403 CALLS     3142 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.1995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     149.20        73.149        .32996E-04   -1.3259    
   4  Prefactor     .10000E-03    25.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5091        16.870        .15743E-03   -1.5198    
   6  Prefactor     7.9376        20.894        .14229E-03   -1.5144    
   7  Prefactor     .10073E-03    24.187        .11393       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7892        162.00        .24248E-03   -1.5374    
  11  norm          1.9840        .31948        .18999E-04   -1.5426    
  12  norm          .10000E-03    .79366        .77620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .88200        5.8812        .42721E-03   -1.5520    
  14  norm          33.271        36.484        .69470E-04   -1.4554    
  15  norm          4.0597        2.8273        .12251E-03   -1.5305    
  16  Prefactor     .10003E-03    170.21        .21375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.432        51.815        .48872E-04   -1.4064    
  18  Prefactor     .10000E-03    30.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8520        3.9389        .15467E-03   -1.5267    
  20  Prefactor     .10000E-03    13.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3926        3.5554        .16849E-03   -1.5340    
  22  Prefactor     .10000E-03    71.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0088        .26522        .36396E-03   -.92735    
  24  Prefactor     1.0247        .14124        .19725E-03   -.91909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59805e-10
Minuit parameter uncertainties:
  1  6.99403e-06
  2  3.55583e-07
  3  73.1934
  4  5.42075e-05
  5  16.8821
  6  20.9133
  7  0.0083881
  8  2.00788e-05
  9  7.55634e-06
  10  42.6351
  11  0.319482
  12  1.25786e-07
  13  4.55548
  14  36.5082
  15  2.82736
  16  0.00418211
  17  51.8494
  18  5.63113e-05
  19  3.93912
  20  7.829e-06
  21  3.55563
  22  0.000147639
  23  0.265564
  24  0.141287
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  8.820e-01  4.555e+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.025e+00  1.413e-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.009e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 3.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58730/likelihoodResults_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.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): 102
logL (Free Index) = 8086.37608333
delta logL = 0.409786627087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8086.35161594
delta logL = 0.434254021673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50054       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2842       1.0000          .0000       5.0000    
     3 'Normalizat'    .97151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0329       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=   8086.352     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      243 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49558        7.1510        .16879E-01   -.61670E-04
   2  alpha         3.2890        1.9623        .25914        .23229E-04
   3  Normalizat    .97148        .35845E-01    .83479E-01   -.77962E-04
   4  Prefactor     1.0329        .19500E-01    .41039E-01   -.19631E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.495576
  alpha      = 3.28897
  Normalizat = 0.971478
  Prefactor  = 1.03288
 **********
 **   18 **HESSE 
 **********

 FCN=   8086.352     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49558        33.505        .76512E-03   -1.5567    
   2  alpha         3.2890        3.2054        .13930E-01    .32108    
   3  Normalizat    .97148        .22845        .36957E-03   -.93992    
   4  Prefactor     1.0329        .10234        .19634E-03   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.67878e-10
Minuit parameter uncertainties:
  1  8.15363
  2  7.61804
  3  0.22868
  4  0.102358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58730': 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): 102
logL (Free Index) = 8086.35161246
delta logL = 0.434257495601

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.956e-01  8.154e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  3.289e+00  7.618e+00  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.033e+00  1.024e-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.715e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/58730/cmap_HighResolution_481939201_482198401_4FGL_J1506.6+0813_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-05', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-11 00:46:34.703997', job_id='58730', GAL2='1.03', fit_tolerance='1e-08', EG2='0.97', EG='1.01', time_epoch_completed='1631346394.7', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-01', ts2='0.93', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='936' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 58730: <4FGL_J1506.6+0813_daily_bin936> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin936> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:31:24 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:31:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:31:26 2021
Terminated at Sat Sep 11 00:46:35 2021
Results reported at Sat Sep 11 00:46:35 2021

Your job looked like:

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

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

