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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin1490
RA = 226.535, Dec = 37.5183
tmin = 625536001, tmax = 625795201
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='48091', job_status='RUN', time_executed='2021-09-10 23:56:24.534457', time_epoch_executed='1631343384.53' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48091

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48091/ft1_4FGL_J1506.1+3731_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48091/ft2_4FGL_J1506.1+3731_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48091/ft1_4FGL_J1506.1+3731_daily_bin1490.fits outfile=/scratch/kocevski/48091/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin1490.fits ra=226.535 dec=37.5183 rad=12.0 tmin=625536001.0 tmax=625795201.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.62
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48091/ft2_4FGL_J1506.1+3731_daily_bin1490.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/48091/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin1490.fits evtable="EVENTS" outfile="/scratch/kocevski/48091/ft1_filtered_4FGL_J1506.1+3731_daily_bin1490.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/48091/ft1_filtered_4FGL_J1506.1+3731_daily_bin1490.fits" evtable="EVENTS" scfile=/scratch/kocevski/48091/ft2_4FGL_J1506.1+3731_daily_bin1490.fits sctable="SC_DATA" outfile=/scratch/kocevski/48091/ltcube_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.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/48091/ft2_4FGL_J1506.1+3731_daily_bin1490.fits
.....................!
real 11.71
user 11.39
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48091/ft1_filtered_4FGL_J1506.1+3731_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/48091/ft2_4FGL_J1506.1+3731_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/48091/ltcube_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.fits outfile=/scratch/kocevski/48091/expmap_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.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/48091/ltcube_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.fits
.....................!
real 192.91
user 187.37
sys 5.06

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/48091/ft1_filtered_4FGL_J1506.1+3731_daily_bin1490.fits scfile=/scratch/kocevski/48091/ft2_4FGL_J1506.1+3731_daily_bin1490.fits outfile=/scratch/kocevski/48091/cmap_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48091/ft1_filtered_4FGL_J1506.1+3731_daily_bin1490.fits scfile=/scratch/kocevski/48091/ft2_4FGL_J1506.1+3731_daily_bin1490.fits outfile=/scratch/kocevski/48091/cmap_HighResolution_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10120E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .91774E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.282       1.0000         .10000E-03   10000.    
     6 'norm      '    16.297       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.279       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.827       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .62569       1.0000         .10000E-03   10000.    
    16 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12907E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.049       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.933       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1824       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71128       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=   6364.459     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3252 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7618       -.61662E-06** at limit **
   2  norm          .10000E-03    3.1091        .24131E-06** at limit **
   3  Prefactor     .10002E-03    18.262       -.49517E-06** at limit **
   4  Prefactor     .10000E-03    19.296        .84073E-06** at limit **
   5  Prefactor     23.282        5.6201        .94623E-08   -.26998E-04
   6  norm          16.305        18.019       -.79219E-06   -.28809E-04
   7  Prefactor     .10000E-03    11.833       -.27913E-05** at limit **
   8  norm          .10000E-03    3.5979       -.39207E-06** at limit **
   9  Prefactor     .10000E-03    11.501        .32310E-05** at limit **
  10  Prefactor     23.277        27.862       -.12873E-05    .28232E-05
  11  norm          1.5252        .97586        .22604E-07   -.13304E-03
  12  Prefactor     27.819        17.018        .32672E-06    .39389E-04
  13  Prefactor     .77936        16.822       -.16506E-06   -.10390E-04
  14  Prefactor     .10000E-03    3.3374        .21054E-08** at limit **
  15  norm          .62539        1.8550       -.36649E-07    .11517E-05
  16  norm          .10000E-03    2.3892       -.18846E-06** at limit **
  17  Prefactor     .10000E-03    5.2717        .59179E-07** at limit **
  18  Prefactor     8.6493        52.388       -.31371E-07    .42467E-06
  19  Prefactor     12.048        8.7733       -.42517E-06    .29643E-06
  20  Prefactor     .10000E-03    4.0440        .17061E-06** at limit **
  21  Prefactor     .10000E-03    5.2171        .66856E-06** at limit **
  22  norm          .10000E-03    .49633        .43437E-08** at limit **
  23  Prefactor     .10000E-03    6.9990        .21855E-07** at limit **
  24  Prefactor     23.934        24.172        .21970E-06    .59161E-07
  25  Prefactor     .10000E-03    5.6421       -.72189E-06** at limit **
  26  norm          .10000E-03    3.3308        .33730E-08** at limit **
  27  Prefactor     .10000E-03    6.5059        .92092E-06** at limit **
  28  Normalizat    1.1823        .16889        .17420E-06    .15092E-04
  29  Prefactor     .71148        .16083        .71054E-07    .22351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100002
  Prefactor  = 23.2816
  norm       = 16.3053
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.2772
  norm       = 1.52515
  Prefactor  = 27.8195
  Prefactor  = 0.779359
  Prefactor  = 0.0001
  norm       = 0.625387
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.64933
  Prefactor  = 12.0483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18227
  Prefactor  = 0.711476
 **********
 **   18 **HESSE 
 **********

 FCN=   6364.459     FROM HESSE     STATUS=OK           565 CALLS     3817 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.9849        .26447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    81.576        .52000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    79.451        .55321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.282        5.6130        .83016E-04   -1.4743    
   6  norm          16.305        16.853        .99212E-04   -1.4900    
   7  Prefactor     .10000E-03    11.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1320        .28822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.277        27.865        .83020E-04   -1.4743    
  11  norm          1.5252        6.1609        .17292E-02   -1.5461    
  12  Prefactor     27.819        17.099        .75946E-04   -1.4653    
  13  Prefactor     .77936        13.148        .48654E-03   -1.5531    
  14  Prefactor     .10000E-03    3.4108        .14230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .62539        1.5921        .13377E-03   -1.5550    
  16  norm          .10000E-03    4.1781        .22589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4217        .53445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6493        50.596        .68150E-03   -1.5120    
  19  Prefactor     12.048        8.7730        .11540E-03   -1.5014    
  20  Prefactor     .10000E-03    4.0461        .15666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2353        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .85580        .10789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.1397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.934        24.096        .81880E-04   -1.4729    
  25  Prefactor     .10000E-03    5.6473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.3330        .14219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.5088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1823        .18711        .21086E-03   -.87153    
  29  Prefactor     .71148        .18269        .26663E-03   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.105e-10
Minuit parameter uncertainties:
  1  4.69261e-07
  2  1.82899e-05
  3  0.00222235
  4  0.000695049
  5  5.61313
  6  16.858
  7  1.4396e-06
  8  0.000134634
  9  1.63255e-07
  10  27.8803
  11  6.13158
  12  17.1023
  13  6.40349
  14  9.17815e-07
  15  1.59221
  16  1.33859e-05
  17  0.000137911
  18  41.8919
  19  8.77392
  20  5.47264e-07
  21  1.52477e-06
  22  1.42158e-06
  23  3.22821e-06
  24  24.1059
  25  5.69547e-07
  26  3.44196e-07
  27  1.01242e-06
  28  0.187214
  29  0.182847
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  6.254e-01  1.592e+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.115e-01  1.828e-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.182e+00  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/48091/likelihoodResults_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.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) = 6362.9346389
delta logL = 1.52392925573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6362.93393764
delta logL = 1.52463050803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21670       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76426       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=   6362.934     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      380 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21663        4.0971        .51844E-02    .16009E-02
   2  alpha         5.0000        2.5263        .46268    ** at limit **
   3  Normalizat    1.1031        .82887E-01    .37874E-01    .49061E-05
   4  Prefactor     .76413        .80698E-01    .43250E-01    .16817E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.216627
  alpha      = 5
  Normalizat = 1.10314
  Prefactor  = 0.764133
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.934     FROM HESSE     STATUS=OK            35 CALLS      415 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21663        .19357        .23481E-04   -1.5615    
   2  alpha         5.0000        3.3891        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1031        .18618        .21690E-03   -.89651    
   4  Prefactor     .76413        .18418        .25813E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13497e-12
Minuit parameter uncertainties:
  1  0.193572
  2  2.48513e-05
  3  0.186287
  4  0.184326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48091': 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) = 6362.93393506
delta logL = 1.52463309198

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.166e-01  1.936e-01  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  5.000e+00  2.485e-05  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.641e-01  1.843e-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.103e+00  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 226.535 37.518
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.95e-08 +/- 6.18e-08
Energy Flux (Free Index): 9.39e-06 +/- 8.37e-06

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/48091/cmap_HighResolution_625536001_625795201_4FGL_J1506.1+3731_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', comment='SUCCESS', energy_flux2='9.39e-06', dlogl='1.52e+00', photon_flux2='6.95e-08', job_status='DONE', time_completed='2021-09-11 00:10:17.047852', photon_index_error2='0.00', photon_index2='5.00', ts='0.22', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='8.19e-08', energy_flux_error2='8.37e-06', EG='1.18', time_epoch_completed='1631344217.05', return_code='0', job_id='48091', GAL2='0.76', EG2='1.10', return_code2='0', photon_flux_error2='6.18e-08', ts2='3.45', photon_index='2.40' WHERE bin_id='1490' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 48091: <4FGL_J1506.1+3731_daily_bin1490> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin1490> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 23:56:08 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:56:09 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:56:09 2021
Terminated at Sat Sep 11 00:10:17 2021
Results reported at Sat Sep 11 00:10:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin1490 226.535 37.5183 625536001 625795201 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 :                                   820.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            849 sec.

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

