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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin497
RA = 226.674, Dec = 8.2256
tmin = 368150401, tmax = 368409601
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='57087', job_status='RUN', time_executed='2021-09-11 00:28:59.552407', time_epoch_executed='1631345339.55' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57087/ft1_4FGL_J1506.6+0813_daily_bin497.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57087/ft2_4FGL_J1506.6+0813_daily_bin497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57087/ft1_4FGL_J1506.6+0813_daily_bin497.fits outfile=/scratch/kocevski/57087/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin497.fits ra=226.674 dec=8.2256 rad=12.0 tmin=368150401.0 tmax=368409601.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.37
user 3.12
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57087/ft1_filtered_4FGL_J1506.6+0813_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/57087/ft2_4FGL_J1506.6+0813_daily_bin497.fits sctable="SC_DATA" expcube=/scratch/kocevski/57087/ltcube_368150401_368409601_4FGL_J1506.6+0813_daily_bin497.fits outfile=/scratch/kocevski/57087/expmap_368150401_368409601_4FGL_J1506.6+0813_daily_bin497.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/57087/ltcube_368150401_368409601_4FGL_J1506.6+0813_daily_bin497.fits
.....................!
real 191.83
user 186.42
sys 4.76

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/57087/ft1_filtered_4FGL_J1506.6+0813_daily_bin497.fits scfile=/scratch/kocevski/57087/ft2_4FGL_J1506.6+0813_daily_bin497.fits outfile=/scratch/kocevski/57087/cmap_368150401_368409601_4FGL_J1506.6+0813_daily_bin497.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57087/ft1_filtered_4FGL_J1506.6+0813_daily_bin497.fits scfile=/scratch/kocevski/57087/ft2_4FGL_J1506.6+0813_daily_bin497.fits outfile=/scratch/kocevski/57087/cmap_HighResolution_368150401_368409601_4FGL_J1506.6+0813_daily_bin497.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.57
user 0.43
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.714       1.0000         .10000E-03   10000.    
     2 'norm      '    37.249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.570       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .29301       1.0000         .10000E-03   10000.    
    12 'norm      '    .10566E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7555       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.460       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8070       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27329E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4384       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85876       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2985       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=   7392.057     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2762 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.704        33.088       -.21702E-05    .28954E-04
   2  norm          37.251        26.927        .84061E-06   -.37815E-04
   3  Prefactor     .10000E-03    13.845       -.80663E-05** at limit **
   4  Prefactor     .10000E-03    23.443        .29528E-05** at limit **
   5  norm          5.4272        14.042       -.79354E-07   -.83774E-04
   6  Prefactor     .10000E-03    9.3619       -.22815E-06** at limit **
   7  Prefactor     37.567        22.974        .89938E-06   -.77072E-04
   8  Prefactor     .10000E-03    24.203       -.41009E-05** at limit **
   9  Prefactor     .10000E-03    11.043        .13099E-05** at limit **
  10  Prefactor     .10000E-03    14.699        .78411E-05** at limit **
  11  norm          .29298        .15358       -.21338E-07   -.48442E-03
  12  norm          .10000E-03    1.8808        .21286E-07** at limit **
  13  norm          .10000E-03    1.7091       -.12572E-08** at limit **
  14  norm          .10000E-03    24.541       -.25731E-05** at limit **
  15  norm          4.7583        4.8292       -.74935E-07   -.15285E-03
  16  Prefactor     .10000E-03    28.417        .52141E-05** at limit **
  17  Prefactor     54.674        52.604       -.96117E-05    .20026E-03
  18  Prefactor     49.454        35.522       -.23849E-05    .77798E-04
  19  Prefactor     2.8063        4.2372       -.21778E-06   -.50842E-03
  20  Prefactor     .10005E-03    30.116        .13173E-05** at limit **
  21  norm          1.4163        4.6800       -.22663E-05   -.12278E-02
  22  Prefactor     .10000E-03    24.416       -.21486E-05** at limit **
  23  Normalizat    .85926        .25151        .15374E-05   -.21389E-04
  24  Prefactor     1.2982        .14178        .42275E-06   -.23073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7041
  norm       = 37.2508
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 5.42722
  Prefactor  = 0.0001
  Prefactor  = 37.5668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.292983
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.75831
  Prefactor  = 0.000100001
  Prefactor  = 54.6742
  Prefactor  = 49.4537
  Prefactor  = 2.80633
  Prefactor  = 0.000100049
  norm       = 1.41633
  Prefactor  = 0.0001
  Normalizat = 0.859263
  Prefactor  = 1.29817
 **********
 **   18 **HESSE 
 **********

 FCN=   7392.057     FROM HESSE     STATUS=OK           395 CALLS     3157 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.704        33.158        .84046E-04   -1.4755    
   2  norm          37.251        26.909        .65667E-04   -1.4487    
   3  Prefactor     .10000E-03    13.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4272        14.020        .17244E-03   -1.5242    
   6  Prefactor     .10000E-03    9.3790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.567        23.002        .65387E-04   -1.4481    
   8  Prefactor     .10000E-03    25.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .29298        .15153        .23411E-04   -1.5600    
  12  norm          .10000E-03    1.9623        .22964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7093        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    24.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7583        4.8281        .18254E-03   -1.5272    
  16  Prefactor     .10000E-03    28.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.674        51.729        .54241E-04   -1.4228    
  18  Prefactor     49.454        35.658        .57020E-04   -1.4300    
  19  Prefactor     2.8063        4.2357        .20913E-03   -1.5373    
  20  Prefactor     .10005E-03    238.67        .87402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4163        4.8472        .33411E-03   -1.5470    
  22  Prefactor     .10000E-03    24.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85926        .28766        .38465E-03   -.97907    
  24  Prefactor     1.2982        .16319        .18668E-03   -.83361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50763e-09
Minuit parameter uncertainties:
  1  33.1848
  2  26.9182
  3  0.000305371
  4  0.000175394
  5  14.028
  6  2.14876e-06
  7  23.0074
  8  0.000210956
  9  5.73324e-05
  10  0.000317093
  11  0.151534
  12  3.00862e-06
  13  1.16521e-07
  14  0.000127376
  15  4.82854
  16  0.000299666
  17  51.7718
  18  35.6731
  19  4.23619
  20  0.00688825
  21  4.8485
  22  0.000113967
  23  0.28817
  24  0.163249
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.165e-07  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.298e+00  1.632e-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.593e-01  2.882e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57087/likelihoodResults_368150401_368409601_4FGL_J1506.6+0813_daily_bin497.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) = 7392.05667875
delta logL = -1.13467103802e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7392.05667738
delta logL = 2.35613697441e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5751       1.0000          .0000       5.0000    
     3 'Normalizat'    .85927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2982       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=   7392.057     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    79.062        .11051E-01** at limit **
   2  alpha         1.3105        2.6370        .18176        .11446E-07
   3  Normalizat    .85926        .39384E-01    .38465E-03    .76846E-06
   4  Prefactor     1.2982        .23116E-01    .18668E-03    .23142E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.31046
  Normalizat = 0.859263
  Prefactor  = 1.29817
 **********
 **   18 **HESSE 
 **********

 FCN=   7392.057     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .71E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8268        .11338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3105        4.3448        .72706E-02   -.49589    
   3  Normalizat    .85926        .27050        .15386E-04   -.97907    
   4  Prefactor     1.2982        .15896        .74671E-05   -.83361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13317e-13
Minuit parameter uncertainties:
  1  1.48696e-06
  2  147.429
  3  0.270928
  4  0.159018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57087': 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) = 7392.05667578
delta logL = 1.83229258255e-06

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.487e-06  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.310e+00  1.474e+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.298e+00  1.590e-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.593e-01  2.709e-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/57087/cmap_HighResolution_368150401_368409601_4FGL_J1506.6+0813_daily_bin497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', job_status='DONE', photon_flux_upper_limit='2.05e-08', time_completed='2021-09-11 00:40:35.917214', job_id='57087', GAL2='1.30', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631346035.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='497' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 57087: <4FGL_J1506.6+0813_daily_bin497> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin497> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 00:25:57 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:25:58 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:25:58 2021
Terminated at Sat Sep 11 00:40:36 2021
Results reported at Sat Sep 11 00:40:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin497 226.674 8.2256 368150401 368409601 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 :                                   697.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            879 sec.

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

