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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin361
RA = 226.535, Dec = 37.5183
tmin = 332899201, tmax = 333158401
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='39716', job_status='RUN', time_executed='2021-09-10 23:26:23.912196', time_epoch_executed='1631341583.91' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39716/ft1_4FGL_J1506.1+3731_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39716/ft2_4FGL_J1506.1+3731_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39716/ft1_4FGL_J1506.1+3731_daily_bin361.fits outfile=/scratch/kocevski/39716/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin361.fits ra=226.535 dec=37.5183 rad=12.0 tmin=332899201.0 tmax=333158401.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 4.19
user 3.97
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39716/ft1_filtered_4FGL_J1506.1+3731_daily_bin361.fits" evtable="EVENTS" scfile=/scratch/kocevski/39716/ft2_4FGL_J1506.1+3731_daily_bin361.fits sctable="SC_DATA" outfile=/scratch/kocevski/39716/ltcube_332899201_333158401_4FGL_J1506.1+3731_daily_bin361.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/39716/ft2_4FGL_J1506.1+3731_daily_bin361.fits
.....................!
real 11.63
user 11.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39716/ft1_filtered_4FGL_J1506.1+3731_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/39716/ft2_4FGL_J1506.1+3731_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/39716/ltcube_332899201_333158401_4FGL_J1506.1+3731_daily_bin361.fits outfile=/scratch/kocevski/39716/expmap_332899201_333158401_4FGL_J1506.1+3731_daily_bin361.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/39716/ltcube_332899201_333158401_4FGL_J1506.1+3731_daily_bin361.fits
.....................!
real 191.40
user 186.53
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/39716/ft1_filtered_4FGL_J1506.1+3731_daily_bin361.fits scfile=/scratch/kocevski/39716/ft2_4FGL_J1506.1+3731_daily_bin361.fits outfile=/scratch/kocevski/39716/cmap_332899201_333158401_4FGL_J1506.1+3731_daily_bin361.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39716/ft1_filtered_4FGL_J1506.1+3731_daily_bin361.fits scfile=/scratch/kocevski/39716/ft2_4FGL_J1506.1+3731_daily_bin361.fits outfile=/scratch/kocevski/39716/cmap_HighResolution_332899201_333158401_4FGL_J1506.1+3731_daily_bin361.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.535 yref=37.5183 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    9.1977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8117       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .61062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.817       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3412       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7395       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5446       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2325       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.467       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    35.887       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.7705       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80546       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0384       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=   6152.086     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3700 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5765        .16767E-06** at limit **
   2  norm          9.1976        4.4773        .16356E-06   -.62710E-04
   3  Prefactor     .10000E-03    4.6743       -.96390E-07** at limit **
   4  Prefactor     .10000E-03    6.5829        .21406E-06** at limit **
   5  Prefactor     4.8109        3.6356        .98701E-06   -.14614E-03
   6  norm          .10000E-03    6.5322       -.28745E-06** at limit **
   7  Prefactor     .10000E-03    7.8612        .95185E-07** at limit **
   8  norm          .60859        3.3381        .27462E-07   -.76504E-04
   9  Prefactor     .10000E-03    103.75       -.10236E-05** at limit **
  10  Prefactor     30.827        33.707        .11635E-05    .21942E-03
  11  norm          .10000E-03    3.6241       -.25448E-06** at limit **
  12  Prefactor     .10000E-03    4.0531       -.20760E-06** at limit **
  13  Prefactor     .10000E-03    3.7276        .36539E-06** at limit **
  14  Prefactor     .10000E-03    3.4550        .93115E-07** at limit **
  15  norm          4.3412        1.7030        .29665E-07    .11482E-03
  16  norm          .10000E-03    1.1038        .15204E-07** at limit **
  17  Prefactor     4.7397        5.3755        .23785E-07    .37926E-03
  18  Prefactor     .10000E-03    35.911        .14431E-05** at limit **
  19  Prefactor     1.5442        7.9378        .17819E-05   -.37441E-04
  20  Prefactor     .10000E-03    14.978       -.16779E-05** at limit **
  21  Prefactor     .10010E-03    6.3515       -.19669E-05** at limit **
  22  norm          7.2323        1.7566        .83652E-07   -.42885E-03
  23  Prefactor     .10001E-03    15.877        .33879E-05** at limit **
  24  Prefactor     29.467        31.960        .29451E-06   -.15856E-04
  25  Prefactor     .10000E-03    21.447        .29412E-07** at limit **
  26  norm          35.886        19.361        .16991E-06    .53917E-04
  27  Prefactor     8.7698        21.289        .40235E-06    .41125E-04
  28  Normalizat    .80556        .17608       -.68690E-06    .18863E-03
  29  Prefactor     1.0383        .17625       -.19687E-06    .12810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.19761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.81089
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.608594
  Prefactor  = 0.000100001
  Prefactor  = 30.8267
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34119
  norm       = 0.0001
  Prefactor  = 4.73966
  Prefactor  = 0.000100002
  Prefactor  = 1.54418
  Prefactor  = 0.000100002
  Prefactor  = 0.000100096
  norm       = 7.23227
  Prefactor  = 0.00010001
  Prefactor  = 29.4674
  Prefactor  = 0.0001
  norm       = 35.8863
  Prefactor  = 8.76984
  Normalizat = 0.805556
  Prefactor  = 1.03832
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.086     FROM HESSE     STATUS=OK           551 CALLS     4251 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5838        .16398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.1976        4.4798        .55762E-03   -1.5101    
   3  Prefactor     .10000E-03    4.6888        .16561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8109        3.8222        .64954E-03   -1.5269    
   6  norm          .10000E-03    6.5590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .60859        14.004        .26938E-02   -1.5552    
   9  Prefactor     .10000E-03    106.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.827        34.316        .72176E-04   -1.4597    
  11  norm          .10000E-03    3.6440        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0670        .15439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7857        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4930        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3412        1.7018        .61359E-04   -1.5291    
  16  norm          .10000E-03    1.1099        .80408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7397        5.2386        .18166E-03   -1.5273    
  18  Prefactor     .10000E-03    36.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5442        8.1762        .34293E-03   -1.5459    
  20  Prefactor     .10000E-03    15.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10010E-03    22.818        .32704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.2323        1.7450        .47999E-04   -1.5170    
  23  Prefactor     .10001E-03    17.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.467        31.939        .73806E-04   -1.4622    
  25  Prefactor     .10000E-03    21.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          35.886        19.348        .66898E-04   -1.4509    
  27  Prefactor     8.7698        21.292        .13535E-03   -1.5116    
  28  Normalizat    .80556        .20259        .25641E-03   -.99863    
  29  Prefactor     1.0383        .20456        .23793E-03   -.91463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93279e-08
Minuit parameter uncertainties:
  1  2.3333e-05
  2  4.47999
  3  1.20231e-05
  4  3.71283e-05
  5  3.82244
  6  4.55487e-05
  7  1.83773e-05
  8  5.83983
  9  0.00055478
  10  34.3375
  11  3.03094e-05
  12  2.83275e-05
  13  4.49704e-05
  14  1.38182e-05
  15  1.70186
  16  3.81898e-06
  17  5.23912
  18  0.000558775
  19  7.10778
  20  0.000375622
  21  0.00296718
  22  1.74501
  23  0.000826518
  24  31.9576
  25  4.38334e-06
  26  19.3512
  27  21.3109
  28  0.202778
  29  0.204712
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  4.341e+00  1.702e+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.038e+00  2.047e-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.056e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.27
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.31e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.07e-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) = 6151.57608727
delta logL = 0.510127000486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.55120173
delta logL = 0.535012542053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5002       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9651       1.0000          .0000       5.0000    
     3 'Normalizat'    .83468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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=   6151.551     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5006        1.8950        .47448E-02    .68327E-04
   2  alpha         1.9648        .37750        .27627       -.22429E-04
   3  Normalizat    .83476        .16632        .44061E-01    .21934E-04
   4  Prefactor     1.0160        .17299        .42552E-01    .41541E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.50065
  alpha      = 1.96484
  Normalizat = 0.834763
  Prefactor  = 1.016
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.551     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5006        1.8353        .64498E-04   -1.5284    
   2  alpha         1.9648        .39733        .11239E-01   -.21573    
   3  Normalizat    .83476        .19354        .25238E-03   -.98792    
   4  Prefactor     1.0160        .20081        .24017E-03   -.92198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51541e-12
Minuit parameter uncertainties:
  1  1.83537
  2  0.399104
  3  0.193702
  4  0.200963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39716': 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) = 6151.5512014
delta logL = 0.535012871314

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  4.501e+00  1.835e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.965e+00  3.991e-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:  1.016e+00  2.010e-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.348e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.26
Ra Dec: 226.535 37.518
Photon Index (Free Index): 1.96 +/- 0.40
Photon Flux (Free Index): 7.38e-08 +/- 3.54e-08
Energy Flux (Free Index): 3.55e-05 +/- 1.84e-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/39716/cmap_HighResolution_332899201_333158401_4FGL_J1506.1+3731_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.31e-08', energy_flux2='3.55e-05', photon_flux_error='3.65e-08', dlogl='5.35e-01', energy_flux='2.72e-05', photon_flux2='7.38e-08', job_status='DONE', time_completed='2021-09-10 23:38:25.578687', photon_index_error2='0.40', photon_index2='1.96', ts='15.27', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='0.81', time_epoch_completed='1631342305.58', return_code='0', job_id='39716', GAL2='1.02', EG2='0.83', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.54e-08', ts2='16.26', photon_index='2.40' WHERE bin_id='361' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:38:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 39716: <4FGL_J1506.1+3731_daily_bin361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin361 226.535 37.5183 332899201 333158401 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 :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            736 sec.

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

