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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin37
RA = 226.535, Dec = 37.5183
tmin = 248918401, tmax = 249177601
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='38203', job_status='RUN', time_executed='2021-09-10 23:23:45.627702', time_epoch_executed='1631341425.63' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38203/ft1_4FGL_J1506.1+3731_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38203/ft2_4FGL_J1506.1+3731_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38203/ft1_4FGL_J1506.1+3731_daily_bin37.fits outfile=/scratch/kocevski/38203/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin37.fits ra=226.535 dec=37.5183 rad=12.0 tmin=248918401.0 tmax=249177601.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.96
user 1.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38203/ft2_4FGL_J1506.1+3731_daily_bin37.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/38203/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/38203/ft1_filtered_4FGL_J1506.1+3731_daily_bin37.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/38203/ft1_filtered_4FGL_J1506.1+3731_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/38203/ft2_4FGL_J1506.1+3731_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/38203/ltcube_248918401_249177601_4FGL_J1506.1+3731_daily_bin37.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/38203/ft2_4FGL_J1506.1+3731_daily_bin37.fits
.....................!
real 12.73
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38203/ft1_filtered_4FGL_J1506.1+3731_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/38203/ft2_4FGL_J1506.1+3731_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/38203/ltcube_248918401_249177601_4FGL_J1506.1+3731_daily_bin37.fits outfile=/scratch/kocevski/38203/expmap_248918401_249177601_4FGL_J1506.1+3731_daily_bin37.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/38203/ltcube_248918401_249177601_4FGL_J1506.1+3731_daily_bin37.fits
.....................!
real 192.38
user 187.62
sys 4.33

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/38203/ft1_filtered_4FGL_J1506.1+3731_daily_bin37.fits scfile=/scratch/kocevski/38203/ft2_4FGL_J1506.1+3731_daily_bin37.fits outfile=/scratch/kocevski/38203/cmap_248918401_249177601_4FGL_J1506.1+3731_daily_bin37.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24887E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.269       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3675       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.381       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .26493E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.5021       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2827       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71252       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=   4993.860     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3680 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3668        .90387E-06** at limit **
   2  norm          .10000E-03    2.6456       -.34340E-07** at limit **
   3  Prefactor     19.700        14.271       -.26954E-06   -.26301E-04
   4  Prefactor     .10000E-03    6.9595        .23687E-06** at limit **
   5  Prefactor     .10000E-03    2.6678       -.24637E-07** at limit **
   6  norm          .10000E-03    7.9682        .75244E-06** at limit **
   7  Prefactor     .10000E-03    154.09       -.41969E-05** at limit **
   8  norm          4.2108        5.7728        .22417E-05   -.15343E-02
   9  Prefactor     .10001E-03    28.688       -.83116E-05** at limit **
  10  Prefactor     67.278        46.959        .20185E-05    .13831E-03
  11  norm          .10000E-03    3.4152       -.27521E-07** at limit **
  12  Prefactor     5.3673        16.148        .25410E-06    .16851E-04
  13  Prefactor     7.3698        6.9230       -.68958E-07   -.30055E-06
  14  Prefactor     .10000E-03    7.4133       -.13773E-05** at limit **
  15  norm          .10000E-03    1.3669        .13819E-07** at limit **
  16  norm          .10000E-03    1.0622       -.16398E-07** at limit **
  17  Prefactor     .10000E-03    3.4307        .32949E-07** at limit **
  18  Prefactor     .10000E-03    77.222        .60959E-05** at limit **
  19  Prefactor     .10000E-03    9.3300       -.15596E-05** at limit **
  20  Prefactor     .10000E-03    8.5328        .52637E-06** at limit **
  21  Prefactor     .10000E-03    4.1832        .12557E-07** at limit **
  22  norm          11.383        2.1723        .46233E-08   -.16961E-02
  23  Prefactor     .10001E-03    25.018        .84610E-05** at limit **
  24  Prefactor     .10000E-03    16.334       -.31511E-05** at limit **
  25  Prefactor     .10000E-03    81.549       -.67008E-05** at limit **
  26  norm          5.4759        17.234       -.22526E-05   -.30566E-04
  27  Prefactor     .10000E-03    13.405        .23444E-05** at limit **
  28  Normalizat    1.2825        .19775       -.34038E-06    .21601E-04
  29  Prefactor     .71264        .18692       -.13414E-06   -.54331E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.6997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.21078
  Prefactor  = 0.000100008
  Prefactor  = 67.2781
  norm       = 0.0001
  Prefactor  = 5.36729
  Prefactor  = 7.36983
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3831
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.47591
  Prefactor  = 0.000100001
  Normalizat = 1.2825
  Prefactor  = 0.712643
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.860     FROM HESSE     STATUS=OK           539 CALLS     4219 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6780        .11221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.700        14.319        .90234E-04   -1.4820    
   4  Prefactor     .10000E-03    6.9652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7113        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.9829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    158.50        .36587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2108        8.4017        .98183E-03   -1.5298    
   9  Prefactor     .10001E-03    29.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     67.278        47.252        .48936E-04   -1.4066    
  11  norm          .10000E-03    3.4159        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3673        16.145        .17352E-03   -1.5245    
  13  Prefactor     7.3698        6.7400        .14776E-03   -1.5165    
  14  Prefactor     .10000E-03    7.5632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9396        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0637        .71125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4425        .12782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1919        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.383        2.1688        .43259E-04   -1.5033    
  23  Prefactor     .10001E-03    26.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    80.570        .42883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.4759        16.970        .17129E-03   -1.5240    
  27  Prefactor     .10000E-03    13.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2825        .23687        .22483E-03   -.84090    
  29  Prefactor     .71264        .22131        .28770E-03   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93714e-09
Minuit parameter uncertainties:
  1  5.62547e-05
  2  1.70868e-06
  3  14.321
  4  1.38986e-05
  5  4.76628e-06
  6  4.59364e-05
  7  0.000940625
  8  8.40404
  9  0.00096023
  10  47.2782
  11  2.38977e-06
  12  16.1577
  13  6.7407
  14  7.20161e-05
  15  7.20194e-06
  16  2.11225e-07
  17  1.71709e-06
  18  0.00116999
  19  9.85626e-05
  20  3.42788e-05
  21  1.05597e-06
  22  2.16878
  23  0.00077855
  24  0.000279709
  25  1.96414e-05
  26  16.9852
  27  0.000185982
  28  0.237073
  29  0.221584
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.126e-01  2.216e-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.282e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/38203/likelihoodResults_248918401_249177601_4FGL_J1506.1+3731_daily_bin37.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): 102
logL (Free Index) = 4993.86156451
delta logL = -0.00162718580486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4993.70093774
delta logL = 0.158999579847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16552       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5001       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73457       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=   4993.701     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      441 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16513        11.005        .98191E-02    .23103E-02
   2  alpha         4.5010        3.6532        .50000        .64980E-05
   3  Normalizat    1.2458        .51490E-01    .51460E-01   -.14467E-04
   4  Prefactor     .73446        .48468E-01    .64144E-01   -.25479E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.165129
  alpha      = 4.50099
  Normalizat = 1.24578
  Prefactor  = 0.734461
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.701     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      474 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16513        29.461        .51627E-04   -1.5627    
   2  alpha         4.5010        3.7503        .79701E-01    .92795    
   3  Normalizat    1.2458        .21995        .22752E-03   -.85200    
   4  Prefactor     .73446        .19848        .28376E-03   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48928e-11
Minuit parameter uncertainties:
  1  4.41213
  2  20.5252
  3  0.22011
  4  0.198677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38203': 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): 102
logL (Free Index) = 4993.7009373
delta logL = 0.159000022171

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.651e-01  4.412e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  4.501e+00  2.053e+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:  7.345e-01  1.987e-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.246e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.535 37.518

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/38203/cmap_HighResolution_248918401_249177601_4FGL_J1506.1+3731_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='8.35e-08', time_completed='2021-09-10 23:36:10.378505', job_id='38203', GAL2='0.73', fit_tolerance='1e-08', EG2='1.25', EG='1.28', time_epoch_completed='1631342170.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.59e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='37' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 38203: <4FGL_J1506.1+3731_daily_bin37> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin37> 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) <bullet0233>, 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:36:11 2021
Results reported at Fri Sep 10 23:36:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin37 226.535 37.5183 248918401 249177601 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 :                                   740.00 sec.
    Max Memory :                                 1237 MB
    Average Memory :                             320.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

