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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin242
RA = 226.535, Dec = 37.5183
tmin = 302054401, tmax = 302313601
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='38492', job_status='RUN', time_executed='2021-09-10 23:21:52.864805', time_epoch_executed='1631341312.86' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38492

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38492/ft1_4FGL_J1506.1+3731_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38492/ft2_4FGL_J1506.1+3731_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38492/ft1_4FGL_J1506.1+3731_daily_bin242.fits outfile=/scratch/kocevski/38492/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin242.fits ra=226.535 dec=37.5183 rad=12.0 tmin=302054401.0 tmax=302313601.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.65
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38492/ft2_4FGL_J1506.1+3731_daily_bin242.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/38492/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin242.fits evtable="EVENTS" outfile="/scratch/kocevski/38492/ft1_filtered_4FGL_J1506.1+3731_daily_bin242.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38492/ft1_filtered_4FGL_J1506.1+3731_daily_bin242.fits" evtable="EVENTS" scfile=/scratch/kocevski/38492/ft2_4FGL_J1506.1+3731_daily_bin242.fits sctable="SC_DATA" outfile=/scratch/kocevski/38492/ltcube_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.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/38492/ft2_4FGL_J1506.1+3731_daily_bin242.fits
.....................!
real 12.20
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38492/ft1_filtered_4FGL_J1506.1+3731_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/38492/ft2_4FGL_J1506.1+3731_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/38492/ltcube_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.fits outfile=/scratch/kocevski/38492/expmap_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.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/38492/ltcube_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.fits
.....................!
real 191.49
user 185.58
sys 5.55

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/38492/ft1_filtered_4FGL_J1506.1+3731_daily_bin242.fits scfile=/scratch/kocevski/38492/ft2_4FGL_J1506.1+3731_daily_bin242.fits outfile=/scratch/kocevski/38492/cmap_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.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.55
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38492/ft1_filtered_4FGL_J1506.1+3731_daily_bin242.fits scfile=/scratch/kocevski/38492/ft2_4FGL_J1506.1+3731_daily_bin242.fits outfile=/scratch/kocevski/38492/cmap_HighResolution_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.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/38492/ft1_filtered_4FGL_J1506.1+3731_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/38492/ft2_4FGL_J1506.1+3731_daily_bin242.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38492/Model_4FGL_J1506.1+3731_daily_bin242.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/38492/ft1_filtered_4FGL_J1506.1+3731_daily_bin242.fits.....................!
real 51.52
user 50.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7138       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6925       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.1054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.300       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.732       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.245       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3342       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2100       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0939       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70243       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=   6332.042     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3641 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.951       -.20207E-07** at limit **
   2  norm          2.3281        3.6056       -.47821E-06   -.30401E-03
   3  Prefactor     12.720        14.120       -.28430E-05   -.25149E-03
   4  Prefactor     .10000E-03    9.1728        .66741E-06** at limit **
   5  Prefactor     7.7144        4.6843        .94214E-06    .13319E-03
   6  norm          1.7589        46.618        .13228E-04    .41531E-04
   7  Prefactor     .10000E-03    7.0765        .23426E-07** at limit **
   8  norm          3.6925        5.0004       -.33979E-06   -.16193E-03
   9  Prefactor     .10000E-03    13.721       -.29917E-05** at limit **
  10  Prefactor     .10000E-03    20.622        .59295E-05** at limit **
  11  norm          7.1051        7.9085       -.94168E-08   -.33451E-04
  12  Prefactor     .10000E-03    5.1482        .17171E-06** at limit **
  13  Prefactor     2.9582        5.2897       -.11839E-05   -.21364E-03
  14  Prefactor     11.301        6.2314        .66109E-07   -.24423E-03
  15  norm          .10000E-03    .81141        .15345E-07** at limit **
  16  norm          8.1082        4.1963        .43586E-07   -.53982E-04
  17  Prefactor     .10000E-03    11.257        .11465E-05** at limit **
  18  Prefactor     83.738        68.705        .47064E-05    .62779E-04
  19  Prefactor     .10000E-03    10.986        .12051E-05** at limit **
  20  Prefactor     .10000E-03    14.323       -.34636E-05** at limit **
  21  Prefactor     21.246        14.526        .30273E-06    .29350E-04
  22  norm          6.3344        1.5722       -.96636E-08   -.54023E-03
  23  Prefactor     .10000E-03    10.556        .19369E-05** at limit **
  24  Prefactor     .10000E-03    12.107       -.34458E-06** at limit **
  25  Prefactor     .10000E-03    28.732       -.39716E-05** at limit **
  26  norm          2.2063        6.5337        .20360E-05   -.88198E-03
  27  Prefactor     .10000E-03    8.5568       -.15009E-05** at limit **
  28  Normalizat    1.0937        .17208       -.38849E-06   -.98344E-04
  29  Prefactor     .70258        .16033       -.45631E-06   -.98471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.32814
  Prefactor  = 12.7199
  Prefactor  = 0.0001
  Prefactor  = 7.71437
  norm       = 1.75886
  Prefactor  = 0.0001
  norm       = 3.69252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.10515
  Prefactor  = 0.0001
  Prefactor  = 2.95817
  Prefactor  = 11.301
  norm       = 0.0001
  norm       = 8.10821
  Prefactor  = 0.0001
  Prefactor  = 83.7383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2457
  norm       = 6.3344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20626
  Prefactor  = 0.0001
  Normalizat = 1.09368
  Prefactor  = 0.702579
 **********
 **   18 **HESSE 
 **********

 FCN=   6332.042     FROM HESSE     STATUS=OK           553 CALLS     4194 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3281        3.5749        .17637E-03   -1.5403    
   3  Prefactor     12.720        14.047        .11227E-03   -1.4995    
   4  Prefactor     .10000E-03    9.1981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7144        4.6847        .12726E-03   -1.5152    
   6  norm          1.7589        45.883        .31668E-03   -1.5443    
   7  Prefactor     .10000E-03    7.0819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6925        4.9994        .19873E-03   -1.5324    
   9  Prefactor     .10000E-03    13.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.1051        7.9043        .15049E-03   -1.5175    
  12  Prefactor     .10000E-03    5.1618        .17632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9582        5.1777        .23159E-03   -1.5364    
  14  Prefactor     11.301        6.2479        .59588E-03   -1.5036    
  15  norm          .10000E-03    1.4858        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1082        4.1892        .10765E-03   -1.5138    
  17  Prefactor     .10000E-03    11.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     83.738        68.298        .43898E-04   -1.3875    
  19  Prefactor     .10000E-03    11.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.246        14.553        .86899E-04   -1.4786    
  22  norm          6.3344        1.5691        .47128E-04   -1.5205    
  23  Prefactor     .10000E-03    10.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2063        19.961        .13835E-02   -1.5411    
  27  Prefactor     .10000E-03    8.5596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0937        .20124        .22900E-03   -.89955    
  29  Prefactor     .70258        .18665        .27154E-03   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53625e-09
Minuit parameter uncertainties:
  1  1.83218e-05
  2  3.57519
  3  14.0504
  4  3.09376e-05
  5  4.68491
  6  17.9817
  7  3.80502e-06
  8  4.99997
  9  7.48661e-05
  10  0.000184699
  11  7.90546
  12  5.76647e-06
  13  5.17852
  14  6.24821
  15  4.97133e-07
  16  4.18934
  17  8.70154e-06
  18  68.3623
  19  2.60835e-05
  20  9.89987e-05
  21  14.5551
  22  1.56907
  23  3.51651e-05
  24  8.83982e-06
  25  0.000131672
  26  13.2779
  27  2.95107e-05
  28  0.201383
  29  0.186818
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  4.971e-07  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.026e-01  1.868e-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.094e+00  2.014e-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: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38492/likelihoodResults_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.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) = 6332.0456141
delta logL = -0.00321866700051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6332.04239367
delta logL = 1.75463173946e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3496       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70258       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=   6332.019     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      272 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10728        .59883        .15557E-05    .28303E-03
   2  alpha         1.3980        1.2303       -.33681E-04    .11359E-04
   3  Normalizat    1.0955        .18671        .29220E-05    .29711E-03
   4  Prefactor     .69920        .18157       -.55832E-05    .16543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.10728
  alpha      = 1.39804
  Normalizat = 1.09546
  Prefactor  = 0.699202
 **********
 **   18 **HESSE 
 **********

 FCN=   6332.019     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10728        .69748        .12670E-03   -1.5642    
   2  alpha         1.3980        1.5236        .44361E-01   -.45647    
   3  Normalizat    1.0955        .18871        .22884E-03   -.89898    
   4  Prefactor     .69920        .18419        .27209E-03   -1.0356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74402e-08
Minuit parameter uncertainties:
  1  0.54684
  2  1.67487
  3  0.188821
  4  0.184352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38492': 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) = 6332.01886182
delta logL = 0.0235336102414

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.073e-01  5.468e-01  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.398e+00  1.675e+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:  6.992e-01  1.844e-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.095e+00  1.888e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/38492/cmap_HighResolution_302054401_302313601_4FGL_J1506.1+3731_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-05', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-10 23:35:45.332384', job_id='38492', GAL2='0.70', fit_tolerance='1e-08', EG2='1.10', EG='1.09', time_epoch_completed='1631342145.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.35e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='242' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 38492: <4FGL_J1506.1+3731_daily_bin242> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin242> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:41 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:21:42 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:21:42 2021
Terminated at Fri Sep 10 23:35:46 2021
Results reported at Fri Sep 10 23:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin242 226.535 37.5183 302054401 302313601 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 :                                   825.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

