/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 105 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.1+3731_daily_bin55
RA = 226.535, Dec = 37.5183
tmin = 253584001, tmax = 253843201
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='38228', job_status='RUN', time_executed='2021-09-10 23:23:21.827853', time_epoch_executed='1631341401.83' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38228/ft1_4FGL_J1506.1+3731_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38228/ft2_4FGL_J1506.1+3731_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38228/ft1_4FGL_J1506.1+3731_daily_bin55.fits outfile=/scratch/kocevski/38228/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin55.fits ra=226.535 dec=37.5183 rad=12.0 tmin=253584001.0 tmax=253843201.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.43
user 1.27
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38228/ft1_filtered_4FGL_J1506.1+3731_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/38228/ft2_4FGL_J1506.1+3731_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/38228/ltcube_253584001_253843201_4FGL_J1506.1+3731_daily_bin55.fits outfile=/scratch/kocevski/38228/expmap_253584001_253843201_4FGL_J1506.1+3731_daily_bin55.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/38228/ltcube_253584001_253843201_4FGL_J1506.1+3731_daily_bin55.fits
.....................!
real 190.83
user 184.97
sys 4.97

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/38228/ft1_filtered_4FGL_J1506.1+3731_daily_bin55.fits scfile=/scratch/kocevski/38228/ft2_4FGL_J1506.1+3731_daily_bin55.fits outfile=/scratch/kocevski/38228/cmap_253584001_253843201_4FGL_J1506.1+3731_daily_bin55.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38228/ft1_filtered_4FGL_J1506.1+3731_daily_bin55.fits scfile=/scratch/kocevski/38228/ft2_4FGL_J1506.1+3731_daily_bin55.fits outfile=/scratch/kocevski/38228/cmap_HighResolution_253584001_253843201_4FGL_J1506.1+3731_daily_bin55.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .73203E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.234       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0912       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6012       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5824       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86926       1.0000         .10000E-03   10000.    
    22 'norm      '    12.333       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.592       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.343       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98896       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=   5695.299     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3648 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7983        .12491E-05** at limit **
   2  norm          .10000E-03    1.2161       -.27460E-07** at limit **
   3  Prefactor     .10010E-03    7.4884        .82128E-06** at limit **
   4  Prefactor     .10000E-03    12.867        .13778E-04** at limit **
   5  Prefactor     .10000E-03    1.4337       -.69952E-07** at limit **
   6  norm          .10000E-03    14.445       -.11403E-04** at limit **
   7  Prefactor     36.228        28.665       -.36371E-05   -.16199E-04
   8  norm          7.0577        6.2421       -.59737E-07   -.12104E-03
   9  Prefactor     .10000E-03    65.727       -.29459E-04** at limit **
  10  Prefactor     11.205        27.688       -.25170E-05   -.11836E-04
  11  norm          .10000E-03    2.8626        .23499E-07** at limit **
  12  Prefactor     .10000E-03    5.1704       -.34638E-07** at limit **
  13  Prefactor     7.0911        7.5181       -.11656E-06   -.96311E-04
  14  Prefactor     .10000E-03    3.8412       -.13394E-06** at limit **
  15  norm          2.6011        1.6210       -.20908E-07   -.81087E-04
  16  norm          3.5821        3.3832        .95928E-07    .33607E-04
  17  Prefactor     .10000E-03    4.1810        .48719E-06** at limit **
  18  Prefactor     .10000E-03    34.652       -.12734E-04** at limit **
  19  Prefactor     7.2541        7.7255       -.15158E-06   -.43193E-04
  20  Prefactor     19.950        27.175       -.29291E-05   -.28986E-04
  21  Prefactor     .85937        19.730       -.72134E-07   -.46542E-04
  22  norm          12.333        2.2128       -.15258E-07   -.11542E-03
  23  Prefactor     .10000E-03    5.1586       -.39985E-06** at limit **
  24  Prefactor     13.590        24.341       -.14331E-05   -.64600E-05
  25  Prefactor     .10000E-03    44.716        .33325E-04** at limit **
  26  norm          .10000E-03    9.3229       -.41295E-05** at limit **
  27  Prefactor     12.342        13.227       -.15236E-06    .45856E-05
  28  Normalizat    1.0154        .20021        .67212E-06   -.21834E-03
  29  Prefactor     .98875        .19675        .39909E-06   -.14008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.228
  norm       = 7.05767
  Prefactor  = 0.0001
  Prefactor  = 11.2049
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.09105
  Prefactor  = 0.0001
  norm       = 2.60107
  norm       = 3.58209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.25406
  Prefactor  = 19.9496
  Prefactor  = 0.859371
  norm       = 12.3326
  Prefactor  = 0.0001
  Prefactor  = 13.5897
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3423
  Normalizat = 1.01541
  Prefactor  = 0.988755
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.299     FROM HESSE     STATUS=OK           553 CALLS     4201 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2203        .81260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10010E-03    55.398        .39522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4458        .88224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.228        28.733        .66578E-04   -1.4503    
   8  norm          7.0577        6.2352        .15100E-03   -1.5177    
   9  Prefactor     .10000E-03    65.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.205        27.687        .11967E-03   -1.5038    
  11  norm          .10000E-03    2.8632        .12470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1783        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0911        7.5137        .15064E-03   -1.5175    
  14  Prefactor     .10000E-03    3.8657        .14442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6011        1.6187        .70899E-04   -1.5385    
  16  norm          3.5821        3.3769        .12799E-03   -1.5329    
  17  Prefactor     .10000E-03    4.1875        .15054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2541        7.7291        .14893E-03   -1.5169    
  20  Prefactor     19.950        26.899        .89657E-04   -1.4814    
  21  Prefactor     .85937        90.346        .49277E-02   -1.5523    
  22  norm          12.333        2.2110        .44818E-04   -1.5005    
  23  Prefactor     .10000E-03    5.1698        .16724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.590        24.346        .10865E-03   -1.4971    
  25  Prefactor     .10000E-03    45.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    9.3640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.342        13.224        .11402E-03   -1.5005    
  28  Normalizat    1.0154        .23086        .25538E-03   -.92516    
  29  Prefactor     .98875        .22941        .26389E-03   -.93105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.878e-08
Minuit parameter uncertainties:
  1  3.50059e-06
  2  1.02747e-06
  3  0.00468924
  4  2.04606e-05
  5  1.05279e-06
  6  1.9377e-06
  7  28.7444
  8  6.23578
  9  0.000164676
  10  27.7184
  11  6.69649e-08
  12  5.81096e-07
  13  7.51468
  14  1.55309e-06
  15  1.61875
  16  3.37704
  17  1.41519e-05
  18  2.05379e-06
  19  7.73015
  20  26.9149
  21  17.6491
  22  2.21099
  23  4.46909e-08
  24  24.3639
  25  0.000287308
  26  3.02936e-05
  27  13.2269
  28  0.231084
  29  0.229638
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.601e+00  1.619e+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:  9.888e-01  2.296e-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.015e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.69
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.01e-05

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) = 5694.9683756
delta logL = 0.330513069844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5694.96470396
delta logL = 0.334184704895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6745       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9441       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97499       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=   5694.965     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      192 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6745        1.7003        .62296E-02    .15195E-02
   2  alpha         1.9441        .48033        .34678       -.16717E-06
   3  Normalizat    1.0335        .19055        .41833E-01   -.37558E-04
   4  Prefactor     .97499        .19505        .45954E-01    .35288E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67453
  alpha      = 1.94412
  Normalizat = 1.03348
  Prefactor  = 0.974988
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.965     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6745        1.6387        .71966E-04   -1.5381    
   2  alpha         1.9441        .51561        .13765E-01   -.22423    
   3  Normalizat    1.0335        .22135        .25340E-03   -.91917    
   4  Prefactor     .97499        .22626        .26545E-03   -.93568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8798e-10
Minuit parameter uncertainties:
  1  1.63869
  2  0.519536
  3  0.221543
  4  0.226481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38228': 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) = 5694.96470396
delta logL = 0.334184704928

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.675e+00  1.639e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.944e+00  5.195e-01  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:  9.750e-01  2.265e-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.033e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.36
Ra Dec: 226.535 37.518
Photon Index (Free Index): 1.94 +/- 0.52
Photon Flux (Free Index): 4.34e-08 +/- 3.05e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.58e-05

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/38228/cmap_HighResolution_253584001_253843201_4FGL_J1506.1+3731_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='2.15e-05', photon_flux_error='3.47e-08', dlogl='3.34e-01', energy_flux='1.63e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-09-10 23:34:56.765520', photon_index_error2='0.52', photon_index2='1.94', ts='6.69', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.02', time_epoch_completed='1631342096.77', return_code='0', job_id='38228', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='3.05e-08', ts2='7.36', photon_index='2.40' WHERE bin_id='55' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:34:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 38228: <4FGL_J1506.1+3731_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin55 226.535 37.5183 253584001 253843201 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 :                                   691.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

