/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 151 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 = 7471
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.1+3731_daily_bin86
RA = 226.535, Dec = 37.5183
tmin = 261619201, tmax = 261878401
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='38271', job_status='RUN', time_executed='2021-09-10 23:24:11.208318', time_epoch_executed='1631341451.21' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38271/ft1_4FGL_J1506.1+3731_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38271/ft2_4FGL_J1506.1+3731_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38271/ft1_4FGL_J1506.1+3731_daily_bin86.fits outfile=/scratch/kocevski/38271/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin86.fits ra=226.535 dec=37.5183 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.42
user 1.25
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38271/ft1_filtered_4FGL_J1506.1+3731_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/38271/ft2_4FGL_J1506.1+3731_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/38271/ltcube_261619201_261878401_4FGL_J1506.1+3731_daily_bin86.fits outfile=/scratch/kocevski/38271/expmap_261619201_261878401_4FGL_J1506.1+3731_daily_bin86.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/38271/ltcube_261619201_261878401_4FGL_J1506.1+3731_daily_bin86.fits
.....................!
real 191.45
user 185.58
sys 4.51

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/38271/ft1_filtered_4FGL_J1506.1+3731_daily_bin86.fits scfile=/scratch/kocevski/38271/ft2_4FGL_J1506.1+3731_daily_bin86.fits outfile=/scratch/kocevski/38271/cmap_261619201_261878401_4FGL_J1506.1+3731_daily_bin86.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38271/ft1_filtered_4FGL_J1506.1+3731_daily_bin86.fits scfile=/scratch/kocevski/38271/ft2_4FGL_J1506.1+3731_daily_bin86.fits outfile=/scratch/kocevski/38271/cmap_HighResolution_261619201_261878401_4FGL_J1506.1+3731_daily_bin86.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/38271/ft1_filtered_4FGL_J1506.1+3731_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/38271/ft2_4FGL_J1506.1+3731_daily_bin86.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38271/Model_4FGL_J1506.1+3731_daily_bin86.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/38271/ft1_filtered_4FGL_J1506.1+3731_daily_bin86.fits.....................!
real 50.15
user 48.70
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.8179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5239       1.0000         .10000E-03   10000.    
     6 'norm      '    13.902       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.110       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3172       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19984       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.502       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1755       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.397       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3263       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6243.264     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     3089 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.7265        .77296E-06** at limit **
   2  norm          2.8155        3.4218       -.94054E-06    .31322E-03
   3  Prefactor     .14595        19.921        .17226E-04    .33067E-02
   4  Prefactor     .10001E-03    13.930       -.11153E-04** at limit **
   5  Prefactor     3.5215        1.3090       -.40877E-06   -.25968E-02
   6  norm          13.885        1.7548       -.81964E-06   -.17386E-02
   7  Prefactor     22.097        2.0603       -.49331E-06   -.44171E-02
   8  norm          6.4726        1.1771        .35958E-06   -.16695E-02
   9  Prefactor     .10005E-03    19.364        .67710E-05** at limit **
  10  Prefactor     .10005E-03    21.699        .49366E-06** at limit **
  11  norm          7.3281        2.0003        .65204E-06   -.44264E-02
  12  Prefactor     .36741E-03    1764.6       -.18501E-03** at limit **
  13  Prefactor     .10000E-03    3.2365        .64108E-07** at limit **
  14  Prefactor     .10000E-03    6.3704       -.50430E-05** at limit **
  15  norm          .10000E-03    .39937        .24987E-07** at limit **
  16  norm          .10000E-03    .79581        .43461E-06** at limit **
  17  Prefactor     .10000E-03    2.1876       -.34467E-06** at limit **
  18  Prefactor     41.490        1.7411       -.44202E-06    .28409E-03
  19  Prefactor     .10000E-03    3.7736        .13744E-06** at limit **
  20  Prefactor     9.1583        2.2274       -.83081E-06   -.38314E-02
  21  Prefactor     .10000E-03    3.5286       -.84320E-06** at limit **
  22  norm          17.397        2.3354       -.12538E-06   -.43204E-03
  23  Prefactor     .10000E-03    11.788        .74581E-05** at limit **
  24  Prefactor     .10000E-03    77.248       -.35308E-04** at limit **
  25  Prefactor     .10000E-03    4.9216       -.45031E-06** at limit **
  26  norm          .10000E-03    3.3657        .15769E-07** at limit **
  27  Prefactor     .10000E-03    5.3951        .35893E-05** at limit **
  28  Normalizat    1.3267        .19964        .23471E-05    .12071E-03
  29  Prefactor     .53859        .19388       -.18792E-05    .55154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 2.81553
  Prefactor  = 0.145951
  Prefactor  = 0.000100006
  Prefactor  = 3.52152
  norm       = 13.8854
  Prefactor  = 22.0969
  norm       = 6.47259
  Prefactor  = 0.000100054
  Prefactor  = 0.00010005
  norm       = 7.32812
  Prefactor  = 0.000367411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.4896
  Prefactor  = 0.0001
  Prefactor  = 9.15829
  Prefactor  = 0.000100001
  norm       = 17.3968
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.32674
  Prefactor  = 0.53859
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.264     FROM HESSE     STATUS=OK           613 CALLS     3702 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.8584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8155        3.5676        .60575E-02   -1.5372    
   3  Prefactor     .14595        9.5412        .95766E-01   -1.5632    
   4  Prefactor     .10001E-03    13.922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5215        4.7715        .53837E-02   -1.5333    
   6  norm          13.885        13.842        .26856E-02   -1.4963    
   7  Prefactor     22.097        20.221        .21296E-02   -1.4767    
   8  norm          6.4726        5.9280        .39449E-02   -1.5199    
   9  Prefactor     .10005E-03    19.994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    22.215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3281        6.9045        .37069E-02   -1.5166    
  12  Prefactor     .36741E-03    11.766        .99769E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .39778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .79804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1869        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.490        64.568        .15556E-02   -1.4419    
  19  Prefactor     .10000E-03    3.7680        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.1583        18.081        .33078E-02   -1.5103    
  21  Prefactor     .10000E-03    5.9573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.397        2.3520        .24006E-02   -1.4874    
  23  Prefactor     .10000E-03    11.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    77.386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.9439        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.3723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.6118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3267        .18086        .48920E-01   -.82772    
  29  Prefactor     .53859        .16796        .71925E-01   -1.1024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72831e-07
Minuit parameter uncertainties:
  1  0.000380792
  2  3.56786
  3  2.35971
  4  0.00056065
  5  4.77203
  6  13.8449
  7  20.2274
  8  5.9285
  9  0.00207626
  10  0.0021181
  11  6.90529
  12  0.112207
  13  3.21312e-06
  14  7.57365e-05
  15  6.1172e-07
  16  6.24712e-07
  17  2.08948e-06
  18  64.6775
  19  1.84372e-06
  20  18.0922
  21  0.000172303
  22  2.35197
  23  0.000275053
  24  0.00084162
  25  6.59982e-06
  26  2.96631e-06
  27  0.000155264
  28  0.180949
  29  0.168117
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  6.117e-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:  5.386e-01  1.681e-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.327e+00  1.809e-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: 4.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38271/likelihoodResults_261619201_261878401_4FGL_J1506.1+3731_daily_bin86.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) = 6243.26431967
delta logL = -5.55575916223e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6243.26426461
delta logL = -4.99494490214e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3929       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53866       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=   6243.264     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      240 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .43276        .48643E-03** at limit **
   2  alpha         2.2166        2.6385        .16480       -.20075E-07
   3  Normalizat    1.3267        .19782        .21626E-03    .94539E-04
   4  Prefactor     .53859        .19404        .31842E-03    .88151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21657
  Normalizat = 1.32674
  Prefactor  = 0.53859
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.264     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .40473        .97286E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2166        3.2275        .65919E-02   -.11362    
   3  Normalizat    1.3267        .19796        .43253E-04   -.82772    
   4  Prefactor     .53859        .19418        .12737E-04   -1.1024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46235e-11
Minuit parameter uncertainties:
  1  1.50746e-07
  2  107.753
  3  0.198077
  4  0.194424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38271': 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) = 6243.26426279
delta logL = 1.32962486532e-06

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  1.507e-07  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.217e+00  1.078e+02  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:  5.386e-01  1.944e-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.327e+00  1.981e-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/38271/cmap_HighResolution_261619201_261878401_4FGL_J1506.1+3731_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-05', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2021-09-10 23:37:24.376664', job_id='38271', GAL2='0.54', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631342244.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.33e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='86' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:37:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 38271: <4FGL_J1506.1+3731_daily_bin86> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin86 226.535 37.5183 261619201 261878401 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

