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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin70
RA = 226.535, Dec = 37.5183
tmin = 257472001, tmax = 257731201
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='38248', job_status='RUN', time_executed='2021-09-10 23:24:49.952537', time_epoch_executed='1631341489.95' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38248/ft1_4FGL_J1506.1+3731_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38248/ft2_4FGL_J1506.1+3731_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38248/ft1_4FGL_J1506.1+3731_daily_bin70.fits outfile=/scratch/kocevski/38248/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin70.fits ra=226.535 dec=37.5183 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.06
user 1.81
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38248/ft1_filtered_4FGL_J1506.1+3731_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/38248/ft2_4FGL_J1506.1+3731_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/38248/ltcube_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.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/38248/ft2_4FGL_J1506.1+3731_daily_bin70.fits
.....................!
real 12.37
user 12.04
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38248/ft1_filtered_4FGL_J1506.1+3731_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/38248/ft2_4FGL_J1506.1+3731_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/38248/ltcube_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.fits outfile=/scratch/kocevski/38248/expmap_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.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/38248/ltcube_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.fits
.....................!
real 189.40
user 185.13
sys 3.92

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/38248/ft1_filtered_4FGL_J1506.1+3731_daily_bin70.fits scfile=/scratch/kocevski/38248/ft2_4FGL_J1506.1+3731_daily_bin70.fits outfile=/scratch/kocevski/38248/cmap_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38248/ft1_filtered_4FGL_J1506.1+3731_daily_bin70.fits scfile=/scratch/kocevski/38248/ft2_4FGL_J1506.1+3731_daily_bin70.fits outfile=/scratch/kocevski/38248/cmap_HighResolution_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.514       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .59598       1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.067       1.0000         .10000E-03   10000.    
     8 'norm      '    .16592       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27224E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3177       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9437       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.716       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.194       1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.749       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4645       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .52164       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=   5658.102     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3708 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.505        20.724       -.19851E-05   -.57406E-04
   2  norm          1.4867        2.9147       -.17102E-06   -.13973E-03
   3  Prefactor     1.5356        27.084        .17863E-04    .12281E-03
   4  Prefactor     .10000E-03    16.310        .17136E-06** at limit **
   5  Prefactor     .59983        3.0561        .73041E-06   -.21603E-04
   6  norm          .10000E-03    7.6401        .94695E-07** at limit **
   7  Prefactor     14.049        21.391        .23815E-06   -.87236E-04
   8  norm          .15515        5.6529       -.31070E-07    .17698E-04
   9  Prefactor     10.508        39.813       -.21383E-05   -.88509E-05
  10  Prefactor     .10000E-03    68.271       -.31848E-06** at limit **
  11  norm          .10000E-03    2.8654        .27869E-07** at limit **
  12  Prefactor     .10184E-03    25.443       -.14649E-04** at limit **
  13  Prefactor     .10000E-03    8.2348        .50084E-06** at limit **
  14  Prefactor     .10000E-03    2.5515       -.19919E-07** at limit **
  15  norm          2.3183        1.6730        .29523E-06    .15664E-02
  16  norm          .10000E-03    1.2644       -.17678E-08** at limit **
  17  Prefactor     .10000E-03    4.0271        .54030E-09** at limit **
  18  Prefactor     .10000E-03    37.221        .81269E-07** at limit **
  19  Prefactor     2.9413        8.3895        .52333E-05    .28460E-03
  20  Prefactor     .10000E-03    9.2924       -.30954E-07** at limit **
  21  Prefactor     .10000E-03    7.7370       -.54990E-08** at limit **
  22  norm          11.717        2.4213        .23677E-07    .19879E-04
  23  Prefactor     14.195        13.559        .99759E-07   -.16209E-04
  24  Prefactor     49.751        47.107        .24961E-06    .17211E-05
  25  Prefactor     .10000E-03    9.3779       -.33217E-07** at limit **
  26  norm          .10000E-03    10.181       -.69147E-07** at limit **
  27  Prefactor     .10001E-03    29.664       -.65185E-06** at limit **
  28  Normalizat    1.4638        .19542       -.15727E-05   -.53267E-03
  29  Prefactor     .52214        .18481       -.14798E-05   -.47202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5051
  norm       = 1.48669
  Prefactor  = 1.53557
  Prefactor  = 0.0001
  Prefactor  = 0.599829
  norm       = 0.0001
  Prefactor  = 14.0489
  norm       = 0.155147
  Prefactor  = 10.508
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000101836
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.31827
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 2.94131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.717
  Prefactor  = 14.1949
  Prefactor  = 49.751
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 1.46383
  Prefactor  = 0.522139
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.102     FROM HESSE     STATUS=OK           553 CALLS     4261 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.505        20.767        .84417E-04   -1.4759    
   2  norm          1.4867        2.8696        .17307E-03   -1.5464    
   3  Prefactor     1.5356        29.002        .17428E-02   -1.5460    
   4  Prefactor     .10000E-03    16.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .59983        5.4479        .24621E-02   -1.5553    
   6  norm          .10000E-03    7.6512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.049        21.407        .10679E-03   -1.4958    
   8  norm          .15515        42.703        .33537E-02   -1.5629    
   9  Prefactor     10.508        39.943        .12372E-03   -1.5060    
  10  Prefactor     .10000E-03    68.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8660        .12435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10184E-03    157.84        .48207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5635        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3183        1.6659        .78628E-04   -1.5403    
  16  norm          .10000E-03    1.2700        .82586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0524        .14739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9413        8.4746        .11836E-02   -1.5365    
  20  Prefactor     .10000E-03    9.3204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.7926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.717        2.4320        .45261E-04   -1.5023    
  23  Prefactor     14.195        13.595        .10631E-03   -1.4954    
  24  Prefactor     49.751        47.071        .56855E-04   -1.4296    
  25  Prefactor     .10000E-03    9.3883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    10.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    29.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4638        .22577        .21298E-03   -.78800    
  29  Prefactor     .52214        .21489        .33170E-03   -1.1097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90185e-08
Minuit parameter uncertainties:
  1  20.774
  2  2.86985
  3  13.3539
  4  0.000107583
  5  3.61557
  6  1.18873e-05
  7  21.4187
  8  5.14994
  9  40.0445
  10  0.000380873
  11  6.07684e-06
  12  0.03414
  13  0.000195787
  14  1.6765e-06
  15  1.66594
  16  3.23547e-07
  17  2.07557e-06
  18  0.000854057
  19  8.47806
  20  2.71117e-05
  21  1.70877e-05
  22  2.43197
  23  13.5975
  24  47.1064
  25  3.18394e-05
  26  2.09484e-05
  27  0.000853699
  28  0.225923
  29  0.215225
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.318e+00  1.666e+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.221e-01  2.152e-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.464e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.72
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.97e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/38248/likelihoodResults_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.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) = 5657.87537719
delta logL = 0.226608709388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5657.86570085
delta logL = 0.236285056862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1056       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8574       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53474       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=   5657.866     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1072        34.869        .71088E-02    .35893E-03
   2  alpha         2.8582        3.2013        .40084        .25077E-04
   3  Normalizat    1.4440        .80657E-01    .48429E-01   -.12222E-04
   4  Prefactor     .53472        .83185E-01    .74079E-01    .22255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10719
  alpha      = 2.85823
  Normalizat = 1.44403
  Prefactor  = 0.534721
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.866     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1072        1.5947        .67964E-04   -1.5418    
   2  alpha         2.8582        .69709        .16436E-01    .14379    
   3  Normalizat    1.4440        .21724        .21408E-03   -.79364    
   4  Prefactor     .53472        .21002        .32800E-03   -1.1041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39821e-12
Minuit parameter uncertainties:
  1  1.59477
  2  0.706654
  3  0.217377
  4  0.210329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38248': 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) = 5657.86569799
delta logL = 0.236287912011

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.107e+00  1.595e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.858e+00  7.067e-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:  5.347e-01  2.103e-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.444e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.86 +/- 0.71
Photon Flux (Free Index): 6.60e-08 +/- 4.62e-08
Energy Flux (Free Index): 1.42e-05 +/- 9.39e-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/38248/cmap_HighResolution_257472001_257731201_4FGL_J1506.1+3731_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-05', comment='SUCCESS', photon_flux='4.97e-08', energy_flux2='1.42e-05', photon_flux_error='3.57e-08', dlogl='2.36e-01', energy_flux='1.45e-05', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-09-10 23:38:01.385166', photon_index_error2='0.71', photon_index2='2.86', ts='3.72', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='9.39e-06', EG='1.46', time_epoch_completed='1631342281.39', return_code='0', job_id='38248', GAL2='0.53', EG2='1.44', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.62e-08', ts2='4.20', photon_index='2.40' WHERE bin_id='70' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:38:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 38248: <4FGL_J1506.1+3731_daily_bin70> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin70> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:25 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:21:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 23:21:26 2021
Terminated at Fri Sep 10 23:38:02 2021
Results reported at Fri Sep 10 23:38:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin70 226.535 37.5183 257472001 257731201 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

