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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin368
RA = 226.535, Dec = 37.5183
tmin = 334713601, tmax = 334972801
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='39726', job_status='RUN', time_executed='2021-09-10 23:26:29.719922', time_epoch_executed='1631341589.72' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39726

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39726/ft1_4FGL_J1506.1+3731_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39726/ft1_4FGL_J1506.1+3731_daily_bin368.fits outfile=/scratch/kocevski/39726/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin368.fits ra=226.535 dec=37.5183 rad=12.0 tmin=334713601.0 tmax=334972801.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.49
user 3.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.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/39726/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/39726/ltcube_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.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/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits
.....................!
real 11.89
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/39726/ltcube_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.fits outfile=/scratch/kocevski/39726/expmap_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.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/39726/ltcube_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.fits
.....................!
real 191.30
user 185.46
sys 5.37

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1506.1+3731 @ 226.535 37.5183

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits scfile=/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits outfile=/scratch/kocevski/39726/cmap_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.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.535 yref=37.5183 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits scfile=/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits outfile=/scratch/kocevski/39726/cmap_HighResolution_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.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.535 yref=37.5183 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/39726/Model_4FGL_J1506.1+3731_daily_bin368.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/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits.....................!
real 53.76
user 52.40
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits', '/scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits', expMap='/scratch/kocevski/39726/expmap_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.fits', expCube='/scratch/kocevski/39726/ltcube_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/39726/Model_4FGL_J1506.1+3731_daily_bin368.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.1+3731'

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.445e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/39726/ft1_filtered_4FGL_J1506.1+3731_daily_bin368.fits
Spacecraft file(s): /scratch/kocevski/39726/ft2_4FGL_J1506.1+3731_daily_bin368.fits
Exposure map: /scratch/kocevski/39726/expmap_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.fits
Exposure cube: /scratch/kocevski/39726/ltcube_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/39726/Model_4FGL_J1506.1+3731_daily_bin368.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) = 6899.09184682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.7121       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2080       1.0000         .10000E-03   10000.    
     6 'norm      '    10.039       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8346       1.0000         .10000E-03   10000.    
     8 'norm      '    7.7757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.587       1.0000         .10000E-03   10000.    
    11 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0781       1.0000         .10000E-03   10000.    
    15 'norm      '    .20759E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    10.569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9799       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.856       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6123       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9066       1.0000         .10000E-03   10000.    
    22 'norm      '    12.077       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.574       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
    26 'norm      '    8.2184       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2669       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.073     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3660 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5755       -.21958E-07** at limit **
   2  norm          4.7125        3.2553        .36473E-07   -.37063E-04
   3  Prefactor     .10000E-03    11.802       -.29138E-06** at limit **
   4  Prefactor     .10000E-03    7.6769       -.46465E-07** at limit **
   5  Prefactor     6.2080        4.3510        .11319E-06   -.96279E-04
   6  norm          10.040        11.389        .70087E-07   -.50067E-05
   7  Prefactor     1.8340        17.261        .46019E-05   -.34098E-04
   8  norm          7.7784        7.4359        .11877E-06   -.20328E-03
   9  Prefactor     .10000E-03    11.354        .13393E-06** at limit **
  10  Prefactor     28.579        46.225        .14909E-05   -.69884E-04
  11  norm          .10000E-03    11.607       -.13006E-06** at limit **
  12  Prefactor     3.9778        19.572       -.21513E-05   -.14385E-03
  13  Prefactor     .10000E-03    6.1795        .10922E-06** at limit **
  14  Prefactor     2.0772        4.8849        .11873E-06   -.21529E-04
  15  norm          .10039E-03    .88939        .10498E-05** at limit **
  16  norm          10.570        5.3208       -.12633E-06   -.11063E-03
  17  Prefactor     4.9815        10.055        .71907E-06   -.96536E-04
  18  Prefactor     34.995        90.880       -.13198E-04   -.67425E-04
  19  Prefactor     7.6111        7.7341       -.75202E-08   -.56331E-05
  20  Prefactor     .10000E-03    7.3598        .53293E-07** at limit **
  21  Prefactor     3.9070        11.017        .12331E-05   -.75236E-04
  22  norm          12.078        2.1863        .48646E-07   -.78064E-03
  23  Prefactor     .10000E-03    6.3617       -.18712E-06** at limit **
  24  Prefactor     12.569        18.707        .14404E-06   -.34004E-04
  25  Prefactor     10.236        34.219        .68802E-06   -.43615E-04
  26  norm          8.2195        19.931        .56922E-07   -.54916E-04
  27  Prefactor     .10000E-03    7.1837       -.13067E-06** at limit **
  28  Normalizat    1.2666        .20012       -.29279E-05   -.52302E-03
  29  Prefactor     .86759        .18368        .24352E-05   -.47390E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.71249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20804
  norm       = 10.0395
  Prefactor  = 1.83404
  norm       = 7.77837
  Prefactor  = 0.0001
  Prefactor  = 28.579
  norm       = 0.0001
  Prefactor  = 3.97782
  Prefactor  = 0.0001
  Prefactor  = 2.07723
  norm       = 0.000100394
  norm       = 10.5696
  Prefactor  = 4.98153
  Prefactor  = 34.9953
  Prefactor  = 7.61106
  Prefactor  = 0.0001
  Prefactor  = 3.90701
  norm       = 12.0776
  Prefactor  = 0.0001
  Prefactor  = 12.5686
  Prefactor  = 10.2358
  norm       = 8.21955
  Prefactor  = 0.0001
  Normalizat = 1.26664
  Prefactor  = 0.867587
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.073     FROM HESSE     STATUS=OK           557 CALLS     4217 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5762        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7125        3.2577        .12079E-03   -1.5274    
   3  Prefactor     .10000E-03    11.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2080        4.3536        .13916E-03   -1.5210    
   6  norm          10.040        11.380        .12646E-03   -1.5074    
   7  Prefactor     1.8340        17.554        .15403E-02   -1.5437    
   8  norm          7.7784        7.4325        .14380E-03   -1.5150    
   9  Prefactor     .10000E-03    11.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.579        46.369        .74932E-04   -1.4638    
  11  norm          .10000E-03    12.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9778        19.443        .20262E-03   -1.5309    
  13  Prefactor     .10000E-03    6.2245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0772        4.8627        .27108E-03   -1.5420    
  15  norm          .10039E-03    30.332        .13302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.570        5.3113        .11794E-03   -1.5058    
  17  Prefactor     4.9815        9.9075        .90106E-03   -1.5262    
  18  Prefactor     34.995        92.110        .33939E-03   -1.4524    
  19  Prefactor     7.6111        7.7380        .14535E-03   -1.5156    
  20  Prefactor     .10000E-03    7.3668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9070        10.876        .10206E-02   -1.5313    
  22  norm          12.078        2.1859        .49347E-04   -1.5013    
  23  Prefactor     .10000E-03    6.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.569        18.706        .11296E-03   -1.4999    
  25  Prefactor     10.236        33.818        .12524E-03   -1.5068    
  26  norm          8.2195        19.684        .13985E-03   -1.5134    
  27  Prefactor     .10000E-03    7.1898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2666        .23206        .25293E-03   -.84568    
  29  Prefactor     .86759        .21319        .29414E-03   -.97283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2175e-08
Minuit parameter uncertainties:
  1  3.53452e-07
  2  3.2578
  3  2.08214e-06
  4  1.44152e-05
  5  4.35379
  6  11.3824
  7  11.3521
  8  7.43337
  9  2.99529e-05
  10  46.4277
  11  2.07692e-05
  12  17.5976
  13  1.34741e-07
  14  4.8636
  15  0.00691582
  16  5.31158
  17  9.91073
  18  92.4879
  19  7.73898
  20  6.95053e-06
  21  10.8812
  22  2.18592
  23  6.97082e-07
  24  18.715
  25  33.8813
  26  19.6993
  27  8.70372e-06
  28  0.23225
  29  0.213394
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.004e-04  6.916e-03  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.676e-01  2.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.267e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39726/likelihoodResults_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.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) = 6899.07292005
delta logL = -0.000165837351233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.06857903
delta logL = 0.00417518203267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14005       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8529       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   6899.069     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      470 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14011        10.307        .13444E-02   -.12688E-02
   2  alpha         2.8527        3.8550        .10094       -.26199E-04
   3  Normalizat    1.2624        .22116        .25330E-03    .85815E-04
   4  Prefactor     .86891        .21090        .29393E-03    .10080E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140107
  alpha      = 2.85269
  Normalizat = 1.26243
  Prefactor  = 0.868912
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.069     FROM HESSE     STATUS=OK            25 CALLS      495 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14011        4.4156        .53776E-04   -1.5633    
   2  alpha         2.8527        3.8471        .40377E-02    .14155    
   3  Normalizat    1.2624        .21834        .10132E-04   -.84695    
   4  Prefactor     .86891        .21112        .11757E-04   -.97236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10598e-09
Minuit parameter uncertainties:
  1  1.57267
  2  3.35199
  3  0.218501
  4  0.211318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39726': 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) = 6899.06857903
delta logL = 0.00417518465201

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.401e-01  1.573e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.853e+00  3.352e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.689e-01  2.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.262e+00  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.535 37.518

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/39726/cmap_HighResolution_334713601_334972801_4FGL_J1506.1+3731_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-09-10 23:41:27.808385', job_id='39726', GAL2='0.87', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1631342487.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.18e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='368' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:41:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 39726: <4FGL_J1506.1+3731_daily_bin368> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin368> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 23:26:10 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:26:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 23:26:12 2021
Terminated at Fri Sep 10 23:41:28 2021
Results reported at Fri Sep 10 23:41:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin368 226.535 37.5183 334713601 334972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.1+3731 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   891.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

