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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin477
RA = 226.535, Dec = 37.5183
tmin = 362966401, tmax = 363225601
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='40849', job_status='RUN', time_executed='2021-09-10 23:31:17.237768', time_epoch_executed='1631341877.24' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40849

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40849/ft1_4FGL_J1506.1+3731_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40849/ft1_4FGL_J1506.1+3731_daily_bin477.fits outfile=/scratch/kocevski/40849/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin477.fits ra=226.535 dec=37.5183 rad=12.0 tmin=362966401.0 tmax=363225601.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 6.02
user 5.76
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.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/40849/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin477.fits evtable="EVENTS" outfile="/scratch/kocevski/40849/ft1_filtered_4FGL_J1506.1+3731_daily_bin477.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40849/ft1_filtered_4FGL_J1506.1+3731_daily_bin477.fits" evtable="EVENTS" scfile=/scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits sctable="SC_DATA" outfile=/scratch/kocevski/40849/ltcube_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.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/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits
.....................!
real 11.33
user 10.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40849/ft1_filtered_4FGL_J1506.1+3731_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/40849/ltcube_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.fits outfile=/scratch/kocevski/40849/expmap_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.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/40849/ltcube_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.fits
.....................!
real 190.27
user 185.18
sys 4.71

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/40849/ft1_filtered_4FGL_J1506.1+3731_daily_bin477.fits scfile=/scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits outfile=/scratch/kocevski/40849/cmap_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40849/ft1_filtered_4FGL_J1506.1+3731_daily_bin477.fits scfile=/scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits outfile=/scratch/kocevski/40849/cmap_HighResolution_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/40849/ft1_filtered_4FGL_J1506.1+3731_daily_bin477.fits', '/scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits', expMap='/scratch/kocevski/40849/expmap_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.fits', expCube='/scratch/kocevski/40849/ltcube_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/40849/Model_4FGL_J1506.1+3731_daily_bin477.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/40849/ft1_filtered_4FGL_J1506.1+3731_daily_bin477.fits
Spacecraft file(s): /scratch/kocevski/40849/ft2_4FGL_J1506.1+3731_daily_bin477.fits
Exposure map: /scratch/kocevski/40849/expmap_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.fits
Exposure cube: /scratch/kocevski/40849/ltcube_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/40849/Model_4FGL_J1506.1+3731_daily_bin477.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) = 5262.00689062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    44.957       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45722E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4752       1.0000         .10000E-03   10000.    
     8 'norm      '    13.281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53430E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4482       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4139       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15489E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61573       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29935E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9627       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5408       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.4246       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1597       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77742       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=   5261.964     FROM MIGRAD    STATUS=CONVERGED   1289 CALLS     4319 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.815        .18142E-02** at limit **
   2  norm          44.959        9.2289        .59795E-04    .20910E-03
   3  Prefactor     7.5128        16.834        .14621E-03    .90588E-04
   4  Prefactor     .10012E-03    107.26        .51780E-02** at limit **
   5  Prefactor     .10000E-03    2.2043        .10459E-02** at limit **
   6  norm          .10000E-03    6.0840        .17469E-02** at limit **
   7  Prefactor     8.4801        28.534        .13770E-03    .74305E-05
   8  norm          13.282        8.3181        .10991E-03    .12484E-03
   9  Prefactor     62.513        51.582        .25382E-03   -.13355E-03
  10  Prefactor     .10000E-03    16.903        .18142E-02** at limit **
  11  norm          .10000E-03    16.214        .36285E-03** at limit **
  12  Prefactor     .10095E-03    15.723        .74969E-01** at limit **
  13  Prefactor     .10000E-03    5.2093        .16101E-02** at limit **
  14  Prefactor     2.4481        4.8105        .21653E-03   -.21999E-03
  15  norm          1.4155        1.8052        .10429E-03   -.28157E-03
  16  norm          .10000E-03    2.3810        .10828E-02** at limit **
  17  Prefactor     4.3033        6.5106        .19407E-03   -.28089E-03
  18  Prefactor     .10000E-03    111.51        .18142E-02** at limit **
  19  Prefactor     .62846        27.759        .39749E-02    .16678E-03
  20  Prefactor     .10000E-03    18.310        .18142E-02** at limit **
  21  Prefactor     .10003E-03    107.24        .43239E-02** at limit **
  22  norm          3.9629        1.7876        .54859E-04    .21615E-03
  23  Prefactor     8.5408        10.574        .13717E-03    .19146E-04
  24  Prefactor     .10000E-03    9.8589        .18142E-02** at limit **
  25  Prefactor     .10000E-03    26.161        .18142E-02** at limit **
  26  norm          7.4249        9.3436        .14719E-03   -.14057E-04
  27  Prefactor     .10000E-03    12.513        .18142E-02** at limit **
  28  Normalizat    1.1598        .23447        .23088E-03   -.67510E-04
  29  Prefactor     .77735        .22465        .27649E-03    .22188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 44.9587
  Prefactor  = 7.51282
  Prefactor  = 0.000100117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.48007
  norm       = 13.2819
  Prefactor  = 62.5133
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100949
  Prefactor  = 0.0001
  Prefactor  = 2.44814
  norm       = 1.41554
  norm       = 0.0001
  Prefactor  = 4.30329
  Prefactor  = 0.0001
  Prefactor  = 0.628464
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  norm       = 3.96294
  Prefactor  = 8.54083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42487
  Prefactor  = 0.0001
  Normalizat = 1.15982
  Prefactor  = 0.777347
 **********
 **   18 **HESSE 
 **********

 FCN=   5261.964     FROM HESSE     STATUS=OK           535 CALLS     4854 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          44.959        9.2283        .11959E-04   -1.4366    
   3  Prefactor     7.5128        16.693        .58482E-05   -1.5160    
   4  Prefactor     .10012E-03    107.86        .10356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2046        .20919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.0841        .34939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4801        28.534        .55080E-05   -1.5125    
   8  norm          13.282        8.3184        .43965E-05   -1.4979    
   9  Prefactor     62.513        51.579        .50763E-04   -1.4125    
  10  Prefactor     .10000E-03    16.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.215        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10095E-03    14.209        .80876E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2100        .32201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4481        4.8101        .86611E-05   -1.5395    
  15  norm          1.4155        1.8050        .41716E-05   -1.5470    
  16  norm          .10000E-03    2.3815        .21656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3033        6.4833        .77629E-05   -1.5293    
  18  Prefactor     .10000E-03    111.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .62846        27.792        .15900E-03   -1.5549    
  20  Prefactor     .10000E-03    18.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    110.27        .17296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9629        1.7875        .21944E-05   -1.5310    
  23  Prefactor     8.5408        10.574        .54866E-05   -1.5123    
  24  Prefactor     .10000E-03    9.8589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.4249        9.3428        .58876E-05   -1.5163    
  27  Prefactor     .10000E-03    12.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1598        .23449        .92350E-05   -.87854    
  29  Prefactor     .77735        .22437        .11059E-04   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60976e-09
Minuit parameter uncertainties:
  1  3.41332e-06
  2  9.22858
  3  16.7029
  4  0.00711202
  5  3.24665e-07
  6  4.38513e-06
  7  28.5795
  8  8.31911
  9  51.6163
  10  3.21132e-05
  11  4.8642e-05
  12  0.00734722
  13  3.4093e-05
  14  4.81085
  15  1.80506
  16  9.33042e-06
  17  6.4844
  18  0.000438564
  19  8.36199
  20  0.000100894
  21  0.0038192
  22  1.78756
  23  10.5758
  24  2.86581e-06
  25  1.23213e-05
  26  9.34458
  27  2.68025e-05
  28  0.234699
  29  0.224633
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.416e+00  1.805e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.773e-01  2.246e-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.160e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/40849/likelihoodResults_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.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) = 5261.95470344
delta logL = 0.00918156623629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5261.95424483
delta logL = 0.00964018278955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3879       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5502       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78094       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=   5261.954     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3879        1.8241        .10074E-03    .17830E-04
   2  alpha         2.5501        1.1094        .25536E-01    .22759E-05
   3  Normalizat    1.1548        .22327        .23131E-03   -.20594E-04
   4  Prefactor     .78094        .22094        .27592E-03   -.57148E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38794
  alpha      = 2.55012
  Normalizat = 1.15485
  Prefactor  = 0.780942
 **********
 **   18 **HESSE 
 **********

 FCN=   5261.954     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3879        1.7842        .40297E-05   -1.5472    
   2  alpha         2.5501        1.0864        .10214E-02    .20050E-01
   3  Normalizat    1.1548        .22360        .92522E-05   -.88010    
   4  Prefactor     .78094        .22109        .11037E-04   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24615e-11
Minuit parameter uncertainties:
  1  1.78424
  2  1.12394
  3  0.223783
  4  0.221337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40849': 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) = 5261.95424482
delta logL = 0.00964018588729

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.388e+00  1.784e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.550e+00  1.124e+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:  7.809e-01  2.213e-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.155e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
Ra Dec: 226.535 37.518

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/40849/cmap_HighResolution_362966401_363225601_4FGL_J1506.1+3731_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-10 23:44:45.819691', job_id='40849', GAL2='0.78', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1631342685.82', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.64e-03', ts2='0.78', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='477' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 40849: <4FGL_J1506.1+3731_daily_bin477> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin477> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 23:31:02 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:31:04 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:31:04 2021
Terminated at Fri Sep 10 23:44:46 2021
Results reported at Fri Sep 10 23:44:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin477 226.535 37.5183 362966401 363225601 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 :                                   804.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

