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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin38
RA = 226.535, Dec = 37.5183
tmin = 249177601, tmax = 249436801
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='38204', job_status='RUN', time_executed='2021-09-10 23:21:39.486117', time_epoch_executed='1631341299.49' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38204/ft1_4FGL_J1506.1+3731_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38204/ft2_4FGL_J1506.1+3731_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38204/ft1_4FGL_J1506.1+3731_daily_bin38.fits outfile=/scratch/kocevski/38204/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin38.fits ra=226.535 dec=37.5183 rad=12.0 tmin=249177601.0 tmax=249436801.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.42
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38204/ft1_filtered_4FGL_J1506.1+3731_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/38204/ft2_4FGL_J1506.1+3731_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/38204/ltcube_249177601_249436801_4FGL_J1506.1+3731_daily_bin38.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/38204/ft2_4FGL_J1506.1+3731_daily_bin38.fits
.....................!
real 12.93
user 12.55
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38204/ft1_filtered_4FGL_J1506.1+3731_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/38204/ft2_4FGL_J1506.1+3731_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/38204/ltcube_249177601_249436801_4FGL_J1506.1+3731_daily_bin38.fits outfile=/scratch/kocevski/38204/expmap_249177601_249436801_4FGL_J1506.1+3731_daily_bin38.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/38204/ltcube_249177601_249436801_4FGL_J1506.1+3731_daily_bin38.fits
.....................!
real 190.30
user 185.26
sys 4.60

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/38204/ft1_filtered_4FGL_J1506.1+3731_daily_bin38.fits scfile=/scratch/kocevski/38204/ft2_4FGL_J1506.1+3731_daily_bin38.fits outfile=/scratch/kocevski/38204/cmap_249177601_249436801_4FGL_J1506.1+3731_daily_bin38.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.896       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30416E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33330       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.522       1.0000         .10000E-03   10000.    
    11 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9339       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.0770       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.362       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.882       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2430       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .56750       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=   5212.008     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     4251 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.874        18.072        .99040E-05    .11192E-03
   2  norm          .10000E-03    2.5489       -.31639E-07** at limit **
   3  Prefactor     .10063E-03    12.062       -.53834E-05** at limit **
   4  Prefactor     6.2843        15.700        .47876E-05    .91235E-03
   5  Prefactor     .10000E-03    1.9115       -.14582E-07** at limit **
   6  norm          10.493        10.652       -.10160E-05    .51124E-03
   7  Prefactor     .10000E-03    8.1538        .16863E-05** at limit **
   8  norm          .32195        3.2890       -.45295E-06    .49549E-04
   9  Prefactor     .10000E-03    20.108        .86423E-05** at limit **
  10  Prefactor     19.519        27.888        .36370E-05   -.40163E-04
  11  norm          .10000E-03    13.431       -.34787E-05** at limit **
  12  Prefactor     .10000E-03    10.078       -.56131E-05** at limit **
  13  Prefactor     .10000E-03    3.2048        .21427E-07** at limit **
  14  Prefactor     .10000E-03    2.7218        .71410E-09** at limit **
  15  norm          1.9341        1.7678       -.26287E-08   -.15615E-03
  16  norm          .10000E-03    1.0074       -.90960E-08** at limit **
  17  Prefactor     .10000E-03    3.3523       -.14829E-07** at limit **
  18  Prefactor     .10000E-03    26.302       -.81997E-05** at limit **
  19  Prefactor     .10000E-03    3.9703        .14960E-07** at limit **
  20  Prefactor     .10000E-03    7.6255       -.71967E-06** at limit **
  21  Prefactor     .10000E-03    11.337        .45671E-05** at limit **
  22  norm          8.0760        2.6420        .38785E-06   -.92196E-04
  23  Prefactor     12.369        18.781       -.30730E-05    .61939E-04
  24  Prefactor     15.877        31.513        .29385E-05   -.17334E-04
  25  Prefactor     .10000E-03    14.184       -.49945E-05** at limit **
  26  norm          .10000E-03    12.402        .18683E-05** at limit **
  27  Prefactor     .10000E-03    11.109        .35851E-05** at limit **
  28  Normalizat    1.2430        .18069       -.34582E-06    .55509E-03
  29  Prefactor     .56748        .16919       -.53501E-06    .23065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8736
  norm       = 0.0001
  Prefactor  = 0.000100632
  Prefactor  = 6.28433
  Prefactor  = 0.0001
  norm       = 10.4926
  Prefactor  = 0.0001
  norm       = 0.321949
  Prefactor  = 0.000100001
  Prefactor  = 19.5195
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93407
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.07596
  Prefactor  = 12.3687
  Prefactor  = 15.8775
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.243
  Prefactor  = 0.567483
 **********
 **   18 **HESSE 
 **********

 FCN=   5212.008     FROM HESSE     STATUS=OK           553 CALLS     4804 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.874        18.187        .12137E-03   -1.5048    
   2  norm          .10000E-03    2.6309        .22499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10063E-03    27.064        .66616E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2843        18.392        .15951E-03   -1.5207    
   5  Prefactor     .10000E-03    1.9375        .97429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.493        10.629        .12369E-03   -1.5060    
   7  Prefactor     .10000E-03    8.1513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .32195        18.571        .25014E-02   -1.5594    
   9  Prefactor     .10000E-03    19.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.519        27.878        .90648E-04   -1.4824    
  11  norm          .10000E-03    13.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2092        .12609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7326        .11631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9341        1.7624        .86233E-04   -1.5430    
  16  norm          .10000E-03    1.0104        .70758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3706        .12906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9892        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.0760        2.6853        .46080E-04   -1.5140    
  23  Prefactor     12.369        19.061        .11393E-03   -1.5004    
  24  Prefactor     15.877        31.491        .10050E-03   -1.4911    
  25  Prefactor     .10000E-03    14.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2430        .20761        .20486E-03   -.85284    
  29  Prefactor     .56748        .19326        .28578E-03   -1.0897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22446e-09
Minuit parameter uncertainties:
  1  18.1965
  2  3.51132e-06
  3  0.00827696
  4  18.4081
  5  1.26975e-07
  6  10.6312
  7  4.25653e-05
  8  4.8912
  9  0.000314961
  10  27.8967
  11  0.000181776
  12  0.00016108
  13  3.46176e-06
  14  1.63778e-06
  15  1.76247
  16  8.48884e-08
  17  1.33289e-06
  18  0.000345252
  19  3.50727e-06
  20  1.62786e-05
  21  0.000136047
  22  2.68532
  23  19.0702
  24  31.5238
  25  0.000165791
  26  3.43968e-05
  27  9.30187e-05
  28  0.207747
  29  0.193487
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.934e+00  1.762e+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:  5.675e-01  1.935e-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.243e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.10e-05

TS (Fixed Index): 1.61
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38204/likelihoodResults_249177601_249436801_4FGL_J1506.1+3731_daily_bin38.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) = 5209.12400748
delta logL = 2.88363726988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5209.03565867
delta logL = 2.97198607932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60580       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64810       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5209.036     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      318 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60580        1.0639        .24355E-04   -.46678E-05
   2  alpha         4.6989        3.8108        .26711E-01   -.53130E-05
   3  Normalizat    1.1202        .20463        .21337E-03   -.80990E-05
   4  Prefactor     .64821        .19630        .26863E-03   -.49092E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.605797
  alpha      = 4.69891
  Normalizat = 1.12015
  Prefactor  = 0.648209
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.036     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .83E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60580        .88947        .97421E-06   -1.5552    
   2  alpha         4.6989        3.5581        .10684E-02    1.0749    
   3  Normalizat    1.1202        .20502        .85346E-05   -.89107    
   4  Prefactor     .64821        .19661        .10745E-04   -1.0559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31926e-14
Minuit parameter uncertainties:
  1  0.889489
  2  1.23921
  3  0.20517
  4  0.196818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38204': 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) = 5209.03565842
delta logL = 2.9719863289

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  6.058e-01  8.895e-01  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  4.699e+00  1.239e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  6.482e-01  1.968e-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.120e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.02
Ra Dec: 226.535 37.518
Photon Index (Free Index): 4.70 +/- 1.24
Photon Flux (Free Index): 1.36e-07 +/- 6.36e-08
Energy Flux (Free Index): 1.89e-05 +/- 8.87e-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/38204/cmap_HighResolution_249177601_249436801_4FGL_J1506.1+3731_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.89e-05', photon_flux_error='3.78e-08', dlogl='2.97e+00', energy_flux='1.21e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-10 23:34:46.454076', photon_index_error2='1.24', photon_index2='4.70', ts='1.61', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.87e-06', EG='1.24', time_epoch_completed='1631342086.45', return_code='0', job_id='38204', GAL2='0.65', EG2='1.12', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='6.36e-08', ts2='8.02', photon_index='2.40' WHERE bin_id='38' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:34:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 38204: <4FGL_J1506.1+3731_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin38 226.535 37.5183 249177601 249436801 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 :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

