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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin1296
RA = 226.535, Dec = 37.5183
tmin = 575251201, tmax = 575510401
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='46807', job_status='RUN', time_executed='2021-09-10 23:51:41.476336', time_epoch_executed='1631343101.48' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46807/ft1_4FGL_J1506.1+3731_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46807/ft2_4FGL_J1506.1+3731_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46807/ft1_4FGL_J1506.1+3731_daily_bin1296.fits outfile=/scratch/kocevski/46807/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin1296.fits ra=226.535 dec=37.5183 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.25
user 4.96
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46807/ft1_filtered_4FGL_J1506.1+3731_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/46807/ft2_4FGL_J1506.1+3731_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/46807/ltcube_575251201_575510401_4FGL_J1506.1+3731_daily_bin1296.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/46807/ft2_4FGL_J1506.1+3731_daily_bin1296.fits
.....................!
real 11.70
user 11.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46807/ft1_filtered_4FGL_J1506.1+3731_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/46807/ft2_4FGL_J1506.1+3731_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/46807/ltcube_575251201_575510401_4FGL_J1506.1+3731_daily_bin1296.fits outfile=/scratch/kocevski/46807/expmap_575251201_575510401_4FGL_J1506.1+3731_daily_bin1296.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/46807/ltcube_575251201_575510401_4FGL_J1506.1+3731_daily_bin1296.fits
.....................!
real 190.70
user 186.20
sys 3.93

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/46807/ft1_filtered_4FGL_J1506.1+3731_daily_bin1296.fits scfile=/scratch/kocevski/46807/ft2_4FGL_J1506.1+3731_daily_bin1296.fits outfile=/scratch/kocevski/46807/cmap_575251201_575510401_4FGL_J1506.1+3731_daily_bin1296.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.535 yref=37.5183 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46807/ft1_filtered_4FGL_J1506.1+3731_daily_bin1296.fits scfile=/scratch/kocevski/46807/ft2_4FGL_J1506.1+3731_daily_bin1296.fits outfile=/scratch/kocevski/46807/cmap_HighResolution_575251201_575510401_4FGL_J1506.1+3731_daily_bin1296.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/46807/ft1_filtered_4FGL_J1506.1+3731_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/46807/ft2_4FGL_J1506.1+3731_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/46807/Model_4FGL_J1506.1+3731_daily_bin1296.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/46807/ft1_filtered_4FGL_J1506.1+3731_daily_bin1296.fits.....................!
real 47.91
user 46.59
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .83996       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5573       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.893       1.0000         .10000E-03   10000.    
     8 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.030       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2463       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9207       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2415       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2646       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5064       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.151       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.331       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.380       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96452       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84817       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=   6127.089     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3664 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9217       -.35943E-06** at limit **
   2  norm          .83768        2.2396        .47759E-06    .20686E-03
   3  Prefactor     17.860        13.578       -.29993E-06   -.81223E-04
   4  Prefactor     .10000E-03    18.419       -.15754E-05** at limit **
   5  Prefactor     6.5587        3.6745       -.16295E-07   -.59411E-04
   6  norm          .10000E-03    6.9841       -.43379E-06** at limit **
   7  Prefactor     16.820        28.849       -.65163E-07   -.52136E-05
   8  norm          .10000E-03    3.3180        .13522E-06** at limit **
   9  Prefactor     38.228        39.535        .13605E-06    .43287E-04
  10  Prefactor     35.037        32.831       -.24962E-07   -.11671E-04
  11  norm          1.2457        4.6094        .16499E-05   -.48557E-05
  12  Prefactor     .10000E-03    13.500        .11179E-06** at limit **
  13  Prefactor     .10000E-03    2.8709        .39957E-07** at limit **
  14  Prefactor     .10000E-03    7.3759        .52721E-06** at limit **
  15  norm          2.9214        1.6328       -.84084E-08   -.23465E-04
  16  norm          .10000E-03    .79543        .31383E-07** at limit **
  17  Prefactor     .10000E-03    2.4236        .59330E-07** at limit **
  18  Prefactor     9.2015        94.146       -.58118E-06   -.30006E-04
  19  Prefactor     1.2590        12.747        .33182E-05   -.26207E-04
  20  Prefactor     .10000E-03    4.5009        .22280E-07** at limit **
  21  Prefactor     .10000E-03    2.8171        .44146E-07** at limit **
  22  norm          5.5065        1.4172       -.25435E-07   -.14001E-03
  23  Prefactor     .10000E-03    3.0360        .28744E-07** at limit **
  24  Prefactor     14.148        17.103        .21184E-07    .95272E-05
  25  Prefactor     .10000E-03    11.149       -.14012E-06** at limit **
  26  norm          13.333        11.470       -.16026E-07   -.81288E-05
  27  Prefactor     20.378        18.830        .51728E-07   -.55843E-05
  28  Normalizat    .96392        .17056        .63839E-06   -.11581E-03
  29  Prefactor     .84887        .16566       -.10967E-05   -.11957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.837683
  Prefactor  = 17.8596
  Prefactor  = 0.0001
  Prefactor  = 6.55874
  norm       = 0.0001
  Prefactor  = 16.8198
  norm       = 0.0001
  Prefactor  = 38.2278
  Prefactor  = 35.0375
  norm       = 1.24569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92142
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20147
  Prefactor  = 1.259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.50655
  Prefactor  = 0.0001
  Prefactor  = 14.1483
  Prefactor  = 0.0001
  norm       = 13.3332
  Prefactor  = 20.3784
  Normalizat = 0.963923
  Prefactor  = 0.848871
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.089     FROM HESSE     STATUS=OK           555 CALLS     4219 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .83768        2.0106        .18962E-02   -1.5525    
   3  Prefactor     17.860        13.531        .94813E-04   -1.4863    
   4  Prefactor     .10000E-03    18.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5587        3.6725        .10820E-03   -1.5196    
   6  norm          .10000E-03    6.9980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.820        29.086        .97447E-04   -1.4887    
   8  norm          .10000E-03    3.3470        .13914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.228        39.579        .64837E-04   -1.4471    
  10  Prefactor     35.037        32.899        .67709E-04   -1.4523    
  11  norm          1.2457        4.5640        .31569E-03   -1.5485    
  12  Prefactor     .10000E-03    13.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8860        .12945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6582        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9214        1.6323        .69053E-04   -1.5366    
  16  norm          .10000E-03    .79839        .68175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4568        .11900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.2015        95.095        .13183E-03   -1.5101    
  19  Prefactor     1.2590        12.679        .39623E-03   -1.5484    
  20  Prefactor     .10000E-03    4.5062        .16218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8247        .12830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5065        1.4171        .45032E-04   -1.5239    
  23  Prefactor     .10000E-03    3.0429        .13310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.148        17.105        .10647E-03   -1.4956    
  25  Prefactor     .10000E-03    11.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.333        11.459        .10970E-03   -1.4978    
  27  Prefactor     20.378        18.834        .88723E-04   -1.4805    
  28  Normalizat    .96392        .19802        .23252E-03   -.94249    
  29  Prefactor     .84887        .19038        .24882E-03   -.97951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64859e-10
Minuit parameter uncertainties:
  1  7.40383e-06
  2  2.01079
  3  13.5334
  4  1.08052e-05
  5  3.67263
  6  3.85456e-06
  7  29.1108
  8  1.53668e-06
  9  39.6057
  10  32.9161
  11  4.5653
  12  8.06852e-06
  13  5.07319e-07
  14  1.44928e-05
  15  1.63237
  16  1.9801e-07
  17  6.38884e-07
  18  59.2826
  19  7.99267
  20  5.33826e-07
  21  4.43532e-07
  22  1.4171
  23  1.10972e-07
  24  17.1111
  25  2.00188e-06
  26  11.4606
  27  18.8391
  28  0.19817
  29  0.190524
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.921e+00  1.632e+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:  8.489e-01  1.905e-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:  9.639e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.10
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.27e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.02e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6126.94893428
delta logL = 0.139651745992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6126.94088634
delta logL = 0.147699685783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7256       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0336       1.0000          .0000       5.0000    
     3 'Normalizat'    .98482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83689       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=   6126.941     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7246        1.8907        .61665E-02    .36518E-03
   2  alpha         2.0331        .58927        .42095        .32253E-04
   3  Normalizat    .98476        .15960        .45976E-01    .22371E-03
   4  Prefactor     .83689        .16064        .44195E-01   -.30685E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.72462
  alpha      = 2.03309
  Normalizat = 0.984761
  Prefactor  = 0.836886
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.941     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7246        1.8264        .73557E-04   -1.5378    
   2  alpha         2.0331        .71481        .15569E-01   -.18787    
   3  Normalizat    .98476        .18753        .23040E-03   -.93543    
   4  Prefactor     .83689        .18614        .25047E-03   -.98383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16787e-09
Minuit parameter uncertainties:
  1  1.82647
  2  0.725305
  3  0.187651
  4  0.186282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46807': 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) = 6126.94088565
delta logL = 0.147700369452

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.725e+00  1.826e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.033e+00  7.253e-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:  8.369e-01  1.863e-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:  9.848e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.35
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.03 +/- 0.73
Photon Flux (Free Index): 4.62e-08 +/- 4.23e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/46807/cmap_HighResolution_575251201_575510401_4FGL_J1506.1+3731_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.27e-08', energy_flux2='2.02e-05', photon_flux_error='3.50e-08', dlogl='1.48e-01', energy_flux='1.83e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-11 00:03:50.687055', photon_index_error2='0.73', photon_index2='2.03', ts='9.10', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='0.96', time_epoch_completed='1631343830.69', return_code='0', job_id='46807', GAL2='0.84', EG2='0.98', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.23e-08', ts2='9.35', photon_index='2.40' WHERE bin_id='1296' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:03:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 46807: <4FGL_J1506.1+3731_daily_bin1296> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin1296> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 23:51:28 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:51:29 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:51:29 2021
Terminated at Sat Sep 11 00:03:51 2021
Results reported at Sat Sep 11 00:03:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin1296 226.535 37.5183 575251201 575510401 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            743 sec.

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

