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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin129
RA = 226.535, Dec = 37.5183
tmin = 272764801, tmax = 273024001
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='38333', job_status='RUN', time_executed='2021-09-10 23:21:47.566052', time_epoch_executed='1631341307.57' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38333/ft1_4FGL_J1506.1+3731_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38333/ft2_4FGL_J1506.1+3731_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38333/ft1_4FGL_J1506.1+3731_daily_bin129.fits outfile=/scratch/kocevski/38333/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin129.fits ra=226.535 dec=37.5183 rad=12.0 tmin=272764801.0 tmax=273024001.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.75
user 1.55
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38333/ft1_filtered_4FGL_J1506.1+3731_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/38333/ft2_4FGL_J1506.1+3731_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/38333/ltcube_272764801_273024001_4FGL_J1506.1+3731_daily_bin129.fits outfile=/scratch/kocevski/38333/expmap_272764801_273024001_4FGL_J1506.1+3731_daily_bin129.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/38333/ltcube_272764801_273024001_4FGL_J1506.1+3731_daily_bin129.fits
.....................!
real 191.51
user 185.52
sys 4.72

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/38333/ft1_filtered_4FGL_J1506.1+3731_daily_bin129.fits scfile=/scratch/kocevski/38333/ft2_4FGL_J1506.1+3731_daily_bin129.fits outfile=/scratch/kocevski/38333/cmap_272764801_273024001_4FGL_J1506.1+3731_daily_bin129.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/38333/ft1_filtered_4FGL_J1506.1+3731_daily_bin129.fits scfile=/scratch/kocevski/38333/ft2_4FGL_J1506.1+3731_daily_bin129.fits outfile=/scratch/kocevski/38333/cmap_HighResolution_272764801_273024001_4FGL_J1506.1+3731_daily_bin129.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16672E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0466       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.170       1.0000         .10000E-03   10000.    
    15 'norm      '    .93623       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4275       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1273       1.0000         .10000E-03   10000.    
    22 'norm      '    10.073       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .60786E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.8983       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88342       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1077       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=   7165.115     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3171 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9187       -.30767E-06** at limit **
   2  norm          .10000E-03    1.2103       -.13738E-07** at limit **
   3  Prefactor     11.586        9.4888        .49250E-07   -.23841E-04
   4  Prefactor     .10000E-03    13.967        .19128E-06** at limit **
   5  Prefactor     .10000E-03    1.4510        .38825E-08** at limit **
   6  norm          .10000E-03    6.7515       -.34266E-06** at limit **
   7  Prefactor     .10000E-03    7.1760       -.11271E-07** at limit **
   8  norm          15.949        7.3935        .83345E-08   -.40008E-04
   9  Prefactor     .10000E-03    21.737       -.13760E-05** at limit **
  10  Prefactor     7.0471        26.561        .10391E-07   -.20198E-04
  11  norm          .10000E-03    2.9679       -.69562E-08** at limit **
  12  Prefactor     1.4397        16.451        .22071E-05   -.26755E-04
  13  Prefactor     .10000E-03    4.4224        .14067E-07** at limit **
  14  Prefactor     15.170        7.9766        .23770E-07   -.23047E-04
  15  norm          .93561        1.2971        .35342E-06    .29764E-03
  16  norm          5.4283        3.3144       -.21570E-06   -.58304E-04
  17  Prefactor     .10000E-03    3.2976       -.25153E-06** at limit **
  18  Prefactor     .10005E-03    103.15        .11615E-04** at limit **
  19  Prefactor     .10000E-03    9.7430       -.10201E-05** at limit **
  20  Prefactor     .10000E-03    18.966        .30164E-06** at limit **
  21  Prefactor     7.1316        10.800        .41164E-05   -.14813E-03
  22  norm          10.075        1.8746        .53750E-08    .28865E-02
  23  Prefactor     .11105E-03    5.1726       -.15668E-05** at limit **
  24  Prefactor     .10000E-03    8.9055        .97818E-06** at limit **
  25  Prefactor     .10000E-03    6.4120        .39932E-06** at limit **
  26  norm          .10000E-03    4.5466       -.37075E-07** at limit **
  27  Prefactor     9.8778        19.395        .60431E-06    .69707E-04
  28  Normalizat    .88318        .17209       -.10525E-05    .11314E-03
  29  Prefactor     1.1080        .16872       -.87467E-07    .93181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5863
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.9489
  Prefactor  = 0.000100001
  Prefactor  = 7.04705
  norm       = 0.0001
  Prefactor  = 1.43968
  Prefactor  = 0.0001
  Prefactor  = 15.1703
  norm       = 0.935612
  norm       = 5.42825
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13158
  norm       = 10.0746
  Prefactor  = 0.000111052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.87779
  Normalizat = 0.883179
  Prefactor  = 1.10801
 **********
 **   18 **HESSE 
 **********

 FCN=   7165.115     FROM HESSE     STATUS=OK           559 CALLS     3730 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2190        .90926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.586        9.4492        .11774E-03   -1.5027    
   4  Prefactor     .10000E-03    14.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.629        .19688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.949        7.4023        .10029E-03   -1.4909    
   9  Prefactor     .10000E-03    21.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0471        26.569        .15112E-03   -1.5177    
  11  norm          .10000E-03    2.9700        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4397        16.345        .35977E-03   -1.5468    
  13  Prefactor     .10000E-03    4.4862        .17366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.170        7.9739        .10283E-03   -1.4929    
  15  norm          .93561        1.1475        .10801E-02   -1.5515    
  16  norm          5.4283        3.3090        .11461E-03   -1.5242    
  17  Prefactor     .10000E-03    3.3221        .15016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    111.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1316        10.999        .75128E-03   -1.5174    
  22  norm          10.075        1.8965        .43973E-04   -1.5073    
  23  Prefactor     .11105E-03    10.452        .54162E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.9721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.4274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.5548        .17627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.8778        19.434        .12737E-03   -1.5079    
  28  Normalizat    .88318        .20280        .26368E-03   -.97054    
  29  Prefactor     1.1080        .20113        .24645E-03   -.89211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3953e-09
Minuit parameter uncertainties:
  1  2.80224e-05
  2  1.78993e-07
  3  9.45039
  4  4.26421e-05
  5  0.000324499
  6  3.07909e-05
  7  9.90519e-08
  8  7.40269
  9  0.00024377
  10  26.6135
  11  8.71372e-07
  12  9.70482
  13  2.20226e-06
  14  7.97442
  15  1.14754
  16  3.30908
  17  2.33507e-05
  18  0.00459276
  19  8.103e-05
  20  3.16641e-05
  21  11.0025
  22  1.89649
  23  0.0214994
  24  0.000118616
  25  3.78433e-05
  26  4.234e-06
  27  19.4467
  28  0.202979
  29  0.201268
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  9.356e-01  1.148e+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:  1.108e+00  2.013e-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:  8.832e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 5.87e-06 +/- 7.19e-06

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

Saving results to:
/scratch/kocevski/38333/likelihoodResults_272764801_273024001_4FGL_J1506.1+3731_daily_bin129.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) = 7165.05367991
delta logL = 0.0612802568894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7165.05169894
delta logL = 0.0632612248019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87419       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0148       1.0000          .0000       5.0000    
     3 'Normalizat'    .89109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1028       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.

 FCN=   7165.052     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87236        2.1637        .21952E-01    .69651E-03
   2  alpha         2.0136        1.3230        .42176       -.34376E-04
   3  Normalizat    .89145        .16194        .44788E-01   -.24819E-04
   4  Prefactor     1.1024        .16849        .55855E-01    .27667E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.872361
  alpha      = 2.01356
  Normalizat = 0.891451
  Prefactor  = 1.1024
 **********
 **   18 **HESSE 
 **********

 FCN=   7165.052     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87236        1.1395        .10732E-02   -1.5521    
   2  alpha         2.0136        .99769        .26705E-01   -.19582    
   3  Normalizat    .89145        .19280        .26256E-03   -.96761    
   4  Prefactor     1.1024        .19947        .24697E-03   -.89390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18869e-11
Minuit parameter uncertainties:
  1  1.13953
  2  1.0275
  3  0.192946
  4  0.199605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38333': 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) = 7165.05169503
delta logL = 0.0632651435108

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  8.724e-01  1.140e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.014e+00  1.027e+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:  1.102e+00  1.996e-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:  8.915e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.01 +/- 1.03
Photon Flux (Free Index): 1.47e-08 +/- 2.31e-08
Energy Flux (Free Index): 6.57e-06 +/- 8.45e-06

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/38333/cmap_HighResolution_272764801_273024001_4FGL_J1506.1+3731_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='6.57e-06', photon_flux_error='2.46e-08', dlogl='6.33e-02', energy_flux='5.87e-06', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-10 23:36:10.151882', photon_index_error2='1.03', photon_index2='2.01', ts='1.08', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='8.45e-06', EG='0.88', time_epoch_completed='1631342170.15', return_code='0', job_id='38333', GAL2='1.10', EG2='0.89', return_code2='0', energy_flux_error='7.19e-06', photon_flux_error2='2.31e-08', ts2='1.20', photon_index='2.40' WHERE bin_id='129' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 38333: <4FGL_J1506.1+3731_daily_bin129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin129 226.535 37.5183 272764801 273024001 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 :                                   854.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

