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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin466
RA = 226.535, Dec = 37.5183
tmin = 360115201, tmax = 360374401
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='40838', job_status='RUN', time_executed='2021-09-10 23:31:18.347493', time_epoch_executed='1631341878.35' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40838/ft1_4FGL_J1506.1+3731_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40838/ft2_4FGL_J1506.1+3731_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40838/ft1_4FGL_J1506.1+3731_daily_bin466.fits outfile=/scratch/kocevski/40838/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin466.fits ra=226.535 dec=37.5183 rad=12.0 tmin=360115201.0 tmax=360374401.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.48
user 3.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40838/ft1_filtered_4FGL_J1506.1+3731_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/40838/ft2_4FGL_J1506.1+3731_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/40838/ltcube_360115201_360374401_4FGL_J1506.1+3731_daily_bin466.fits outfile=/scratch/kocevski/40838/expmap_360115201_360374401_4FGL_J1506.1+3731_daily_bin466.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/40838/ltcube_360115201_360374401_4FGL_J1506.1+3731_daily_bin466.fits
.....................!
real 192.58
user 186.82
sys 5.38

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/40838/ft1_filtered_4FGL_J1506.1+3731_daily_bin466.fits scfile=/scratch/kocevski/40838/ft2_4FGL_J1506.1+3731_daily_bin466.fits outfile=/scratch/kocevski/40838/cmap_360115201_360374401_4FGL_J1506.1+3731_daily_bin466.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40838/ft1_filtered_4FGL_J1506.1+3731_daily_bin466.fits scfile=/scratch/kocevski/40838/ft2_4FGL_J1506.1+3731_daily_bin466.fits outfile=/scratch/kocevski/40838/cmap_HighResolution_360115201_360374401_4FGL_J1506.1+3731_daily_bin466.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19228E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    29.524       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12555E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.148       1.0000         .10000E-03   10000.    
     8 'norm      '    8.6847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.074       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2472       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5820       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
    22 'norm      '    7.0863       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .63387E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.002       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30471E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    11.095       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78340       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94066       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=   6165.497     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     4296 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10085E-03    21.391       -.67164E-06** at limit **
   2  norm          29.522        6.6237        .40186E-06   -.26341E-04
   3  Prefactor     .10000E-03    26.952       -.95304E-07** at limit **
   4  Prefactor     5.8249        16.126       -.53206E-07   -.91798E-04
   5  Prefactor     .10000E-03    1.1617        .18174E-07** at limit **
   6  norm          .10000E-03    11.051        .30542E-06** at limit **
   7  Prefactor     42.149        24.954       -.32652E-06   -.14549E-04
   8  norm          8.6850        6.5295        .28207E-06   -.30596E-04
   9  Prefactor     23.077        24.825       -.28385E-06   -.64929E-05
  10  Prefactor     .10000E-03    22.941       -.33490E-06** at limit **
  11  norm          10.502        8.1186        .72722E-07   -.16837E-05
  12  Prefactor     .10000E-03    7.1127        .13063E-07** at limit **
  13  Prefactor     .10000E-03    2.0181        .49275E-08** at limit **
  14  Prefactor     4.2475        5.4690        .31341E-06   -.10511E-03
  15  norm          2.5821        1.5003        .37714E-07   -.12251E-03
  16  norm          .10000E-03    1.1296       -.19220E-07** at limit **
  17  Prefactor     .10000E-03    2.9889       -.29077E-07** at limit **
  18  Prefactor     .10000E-03    27.903       -.47547E-06** at limit **
  19  Prefactor     .10000E-03    5.2277        .70409E-07** at limit **
  20  Prefactor     .10000E-03    12.835       -.10649E-06** at limit **
  21  Prefactor     11.611        10.694        .56089E-07   -.23121E-04
  22  norm          7.0883        1.7622       -.10110E-05   -.78363E-03
  23  Prefactor     .10018E-03    8.2276        .41792E-05** at limit **
  24  Prefactor     39.031        47.247        .26766E-05   -.11792E-04
  25  Prefactor     .10004E-03    22.092        .26663E-05** at limit **
  26  norm          11.107        15.389       -.88949E-06   -.15704E-03
  27  Prefactor     .10000E-03    10.504       -.31826E-06** at limit **
  28  Normalizat    .78353        .17313        .10106E-05   -.33079E-03
  29  Prefactor     .94052        .17252       -.25266E-05   -.12657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100852
  norm       = 29.5218
  Prefactor  = 0.000100001
  Prefactor  = 5.82488
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.1486
  norm       = 8.68497
  Prefactor  = 23.0766
  Prefactor  = 0.0001
  norm       = 10.5025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24754
  norm       = 2.5821
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6109
  norm       = 7.08834
  Prefactor  = 0.00010018
  Prefactor  = 39.0308
  Prefactor  = 0.00010004
  norm       = 11.1069
  Prefactor  = 0.0001
  Normalizat = 0.783528
  Prefactor  = 0.940521
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.497     FROM HESSE     STATUS=OK           573 CALLS     4869 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10085E-03    26.003        .97966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.522        6.6196        .73735E-04   -1.4621    
   3  Prefactor     .10000E-03    27.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8249        16.090        .16613E-03   -1.5225    
   5  Prefactor     .10000E-03    1.1724        .82625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.149        25.015        .61747E-04   -1.4409    
   8  norm          8.6850        6.5391        .13602E-03   -1.5118    
   9  Prefactor     23.077        24.820        .83387E-04   -1.4747    
  10  Prefactor     .10000E-03    23.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.502        8.1176        .12363E-03   -1.5060    
  12  Prefactor     .10000E-03    7.1547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0214        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2475        5.4600        .19552E-03   -1.5296    
  15  norm          2.5821        1.4979        .69894E-04   -1.5387    
  16  norm          .10000E-03    1.1328        .81451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9909        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2790        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.611        10.709        .11759E-03   -1.5026    
  22  norm          7.0883        2.0688        .47355E-04   -1.5175    
  23  Prefactor     .10018E-03    27.079        .53169E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     39.031        49.699        .64181E-04   -1.4458    
  25  Prefactor     .10004E-03    84.928        .61590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.107        13.511        .12028E-03   -1.5041    
  27  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78353        .20182        .25377E-03   -1.0068    
  29  Prefactor     .94052        .19872        .24182E-03   -.94739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23477e-09
Minuit parameter uncertainties:
  1  0.00941875
  2  6.61977
  3  0.000274543
  4  16.1018
  5  2.59027e-07
  6  1.35106e-05
  7  25.0214
  8  6.53967
  9  24.8306
  10  3.45012e-05
  11  8.1185
  12  7.69829e-06
  13  1.23997e-06
  14  5.46066
  15  1.49792
  16  2.54514e-06
  17  5.13933e-06
  18  1.46837e-05
  19  1.9287e-05
  20  2.84497e-05
  21  10.7108
  22  2.06882
  23  0.00441284
  24  49.7519
  25  0.00367807
  26  13.5148
  27  1.01093e-05
  28  0.202014
  29  0.198873
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.582e+00  1.498e+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.405e-01  1.989e-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:  7.835e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 9.39e-06

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) = 6165.47558187
delta logL = 0.0211015420136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6165.47274657
delta logL = 0.0239368364282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4950       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5464       1.0000          .0000       5.0000    
     3 'Normalizat'    .77607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94610       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=   6165.473     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4943        32.491        .64688E-02    .30112E-03
   2  alpha         2.5463        2.9879        .41161        .16814E-04
   3  Normalizat    .77570        .78560E-01    .43297E-01    .14905E-04
   4  Prefactor     .94651        .85747E-01    .45590E-01    .55629E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49429
  alpha      = 2.54626
  Normalizat = 0.775702
  Prefactor  = 0.946514
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.473     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4943        1.5454        .67208E-04   -1.5392    
   2  alpha         2.5463        .69165        .16367E-01    .18504E-01
   3  Normalizat    .77570        .19016        .25491E-03   -1.0098    
   4  Prefactor     .94651        .19507        .24115E-03   -.94534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54936e-10
Minuit parameter uncertainties:
  1  1.54542
  2  0.700793
  3  0.190318
  4  0.195215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40838': 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) = 6165.47274389
delta logL = 0.0239395163608

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.494e+00  1.545e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.546e+00  7.008e-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.465e-01  1.952e-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:  7.757e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.47
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.55 +/- 0.70
Photon Flux (Free Index): 5.99e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.56e-05 +/- 9.36e-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/40838/cmap_HighResolution_360115201_360374401_4FGL_J1506.1+3731_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='1.56e-05', photon_flux_error='3.21e-08', dlogl='2.39e-02', energy_flux='1.62e-05', photon_flux2='5.99e-08', job_status='DONE', time_completed='2021-09-10 23:44:21.715962', photon_index_error2='0.70', photon_index2='2.55', ts='5.46', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='9.36e-06', EG='0.78', time_epoch_completed='1631342661.72', return_code='0', job_id='40838', GAL2='0.95', EG2='0.78', return_code2='0', energy_flux_error='9.39e-06', photon_flux_error2='3.86e-08', ts2='5.47', photon_index='2.40' WHERE bin_id='466' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:44:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 40838: <4FGL_J1506.1+3731_daily_bin466> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin466> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 23:31:01 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:31:03 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:31:03 2021
Terminated at Fri Sep 10 23:44:22 2021
Results reported at Fri Sep 10 23:44:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin466 226.535 37.5183 360115201 360374401 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

