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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin312
RA = 226.535, Dec = 37.5183
tmin = 320198401, tmax = 320457601
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='39643', job_status='RUN', time_executed='2021-09-10 23:28:33.747290', time_epoch_executed='1631341713.75' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39643

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39643/ft1_4FGL_J1506.1+3731_daily_bin312.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39643/ft2_4FGL_J1506.1+3731_daily_bin312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39643/ft1_4FGL_J1506.1+3731_daily_bin312.fits outfile=/scratch/kocevski/39643/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin312.fits ra=226.535 dec=37.5183 rad=12.0 tmin=320198401.0 tmax=320457601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.31
user 3.10
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39643/ft1_filtered_4FGL_J1506.1+3731_daily_bin312.fits" evtable="EVENTS" scfile=/scratch/kocevski/39643/ft2_4FGL_J1506.1+3731_daily_bin312.fits sctable="SC_DATA" outfile=/scratch/kocevski/39643/ltcube_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.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/39643/ft2_4FGL_J1506.1+3731_daily_bin312.fits
.....................!
real 11.20
user 10.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39643/ft1_filtered_4FGL_J1506.1+3731_daily_bin312.fits evtable="EVENTS" scfile=/scratch/kocevski/39643/ft2_4FGL_J1506.1+3731_daily_bin312.fits sctable="SC_DATA" expcube=/scratch/kocevski/39643/ltcube_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.fits outfile=/scratch/kocevski/39643/expmap_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.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/39643/ltcube_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.fits
.....................!
real 192.74
user 187.08
sys 5.26

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/39643/ft1_filtered_4FGL_J1506.1+3731_daily_bin312.fits scfile=/scratch/kocevski/39643/ft2_4FGL_J1506.1+3731_daily_bin312.fits outfile=/scratch/kocevski/39643/cmap_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.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/39643/ft1_filtered_4FGL_J1506.1+3731_daily_bin312.fits scfile=/scratch/kocevski/39643/ft2_4FGL_J1506.1+3731_daily_bin312.fits outfile=/scratch/kocevski/39643/cmap_HighResolution_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.383       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2108       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.147       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4380       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.635       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8777       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.532       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8811       1.0000         .10000E-03   10000.    
    22 'norm      '    8.2290       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.654       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70620       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=   5648.757     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3691 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.382        20.563       -.94482E-07    .27965E-04
   2  norm          4.2108        4.2719       -.27988E-06   -.93327E-06
   3  Prefactor     .10000E-03    7.3315       -.17537E-05** at limit **
   4  Prefactor     .10000E-03    9.1932       -.27302E-05** at limit **
   5  Prefactor     .10000E-03    3.7521        .16034E-06** at limit **
   6  norm          .10000E-03    4.4511        .10301E-05** at limit **
   7  Prefactor     35.150        27.988        .38145E-05    .95028E-05
   8  norm          1.4375        9.5447        .34302E-06   -.36938E-04
   9  Prefactor     .10000E-03    16.925        .37948E-05** at limit **
  10  Prefactor     59.633        44.144       -.16198E-05   -.14078E-04
  11  norm          .10000E-03    5.0936       -.84299E-07** at limit **
  12  Prefactor     .10000E-03    6.4879        .17499E-05** at limit **
  13  Prefactor     14.022        9.4897        .20169E-07   -.29827E-04
  14  Prefactor     1.8774        1.5441        .11291E-06   -.99340E-03
  15  norm          .10000E-03    .84830       -.47801E-07** at limit **
  16  norm          3.7466        4.6434       -.16580E-06    .18245E-03
  17  Prefactor     .10000E-03    16.914       -.45210E-05** at limit **
  18  Prefactor     31.459        68.596        .64442E-05   -.15019E-05
  19  Prefactor     .10000E-03    4.7443       -.73263E-06** at limit **
  20  Prefactor     46.536        29.259        .38940E-05    .87622E-04
  21  Prefactor     5.8834        14.224        .24707E-05    .13306E-03
  22  norm          8.2290        1.8729        .53600E-07    .11278E-04
  23  Prefactor     .10000E-03    4.6615       -.52542E-06** at limit **
  24  Prefactor     21.103        21.877       -.10855E-05    .85519E-06
  25  Prefactor     .10000E-03    10.360        .27602E-05** at limit **
  26  norm          .10000E-03    6.7177        .82920E-06** at limit **
  27  Prefactor     17.655        17.485        .69795E-06   -.29665E-06
  28  Normalizat    1.1004        .19683       -.17768E-05    .10449E-03
  29  Prefactor     .70616        .18129        .59066E-07   -.18180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3819
  norm       = 4.21076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.1505
  norm       = 1.43749
  Prefactor  = 0.0001
  Prefactor  = 59.6328
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0221
  Prefactor  = 1.87738
  norm       = 0.0001
  norm       = 3.74661
  Prefactor  = 0.000100002
  Prefactor  = 31.4588
  Prefactor  = 0.0001
  Prefactor  = 46.536
  Prefactor  = 5.8834
  norm       = 8.22903
  Prefactor  = 0.0001
  Prefactor  = 21.1035
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.6545
  Normalizat = 1.10042
  Prefactor  = 0.706165
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.757     FROM HESSE     STATUS=OK           553 CALLS     4244 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.382        20.561        .10212E-03   -1.4923    
   2  norm          4.2108        4.2704        .15016E-03   -1.5298    
   3  Prefactor     .10000E-03    7.3303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8656        .28410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4505        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.150        28.024        .67596E-04   -1.4522    
   8  norm          1.4375        9.5962        .35987E-03   -1.5468    
   9  Prefactor     .10000E-03    16.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.633        44.377        .51955E-04   -1.4162    
  11  norm          .10000E-03    5.1029        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.022        9.4589        .10697E-03   -1.4959    
  14  Prefactor     1.8774        6.5513        .15192E-02   -1.5434    
  15  norm          .10000E-03    .87117        .13464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7466        4.6005        .15885E-03   -1.5321    
  17  Prefactor     .10000E-03    17.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.459        68.470        .71442E-04   -1.4586    
  19  Prefactor     .10000E-03    4.7678        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.536        29.083        .58779E-04   -1.4343    
  21  Prefactor     5.8834        14.078        .16560E-03   -1.5223    
  22  norm          8.2290        1.8744        .46610E-04   -1.5134    
  23  Prefactor     .10000E-03    4.6748        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.103        21.873        .87187E-04   -1.4789    
  25  Prefactor     .10000E-03    10.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.7270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.655        17.487        .95324E-04   -1.4867    
  28  Normalizat    1.1004        .23292        .23828E-03   -.89738    
  29  Prefactor     .70616        .21185        .28149E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5431e-09
Minuit parameter uncertainties:
  1  20.5708
  2  4.27069
  3  7.66375e-06
  4  3.70136e-06
  5  2.18751e-05
  6  2.64874e-06
  7  28.0345
  8  7.42964
  9  2.17616e-06
  10  44.402
  11  1.65002e-06
  12  6.69634e-06
  13  9.45993
  14  6.55377
  15  6.03059e-06
  16  4.60092
  17  0.000381989
  18  68.6418
  19  6.71774e-06
  20  29.0923
  21  14.0861
  22  1.8744
  23  4.63513e-06
  24  21.8813
  25  2.70715e-06
  26  3.9469e-06
  27  17.4925
  28  0.233139
  29  0.212094
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  6.031e-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.062e-01  2.121e-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.100e+00  2.331e-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: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39643/likelihoodResults_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.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) = 5648.75836035
delta logL = -0.00107291198492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.75728924
delta logL = -1.79618837137e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9770       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70637       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5648.757     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      265 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    121.76        .10969E-02** at limit **
   2  alpha         2.6582        2.8175        .50000       -.11391E-07
   3  Normalizat    1.1004        .64380E-01    .23828E-03    .15128E-02
   4  Prefactor     .70617        .62446E-01    .28149E-03    .13225E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.65818
  Normalizat = 1.10042
  Prefactor  = 0.70617
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.757     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .96724        .21939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6582        3.5558        .20000        .63315E-01
   3  Normalizat    1.1004        .21549        .47655E-04   -.89738    
   4  Prefactor     .70617        .20901        .56298E-04   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65286e-09
Minuit parameter uncertainties:
  1  4.42884e-06
  2  112.131
  3  0.215666
  4  0.209242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39643': 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) = 5648.75728463
delta logL = 2.8141294024e-06

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  4.429e-06  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.658e+00  1.121e+02  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.062e-01  2.092e-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.100e+00  2.157e-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/39643/cmap_HighResolution_320198401_320457601_4FGL_J1506.1+3731_daily_bin312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-05', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-10 23:41:19.053987', job_id='39643', GAL2='0.71', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631342479.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.81e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='312' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:41:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 39643: <4FGL_J1506.1+3731_daily_bin312> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin312> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 23:26:05 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:26:06 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:26:06 2021
Terminated at Fri Sep 10 23:41:19 2021
Results reported at Fri Sep 10 23:41:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin312 226.535 37.5183 320198401 320457601 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 :                                   764.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

