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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin15
RA = 226.535, Dec = 37.5183
tmin = 243216001, tmax = 243475201
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='38169', job_status='RUN', time_executed='2021-09-10 23:25:01.801593', time_epoch_executed='1631341501.8' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38169

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38169/ft1_4FGL_J1506.1+3731_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38169/ft2_4FGL_J1506.1+3731_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38169/ft1_4FGL_J1506.1+3731_daily_bin15.fits outfile=/scratch/kocevski/38169/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin15.fits ra=226.535 dec=37.5183 rad=12.0 tmin=243216001.0 tmax=243475201.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.37
user 1.18
sys 0.17

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38169/ft1_filtered_4FGL_J1506.1+3731_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/38169/ft2_4FGL_J1506.1+3731_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/38169/ltcube_243216001_243475201_4FGL_J1506.1+3731_daily_bin15.fits outfile=/scratch/kocevski/38169/expmap_243216001_243475201_4FGL_J1506.1+3731_daily_bin15.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/38169/ltcube_243216001_243475201_4FGL_J1506.1+3731_daily_bin15.fits
.....................!
real 189.48
user 185.33
sys 3.84

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/38169/ft1_filtered_4FGL_J1506.1+3731_daily_bin15.fits scfile=/scratch/kocevski/38169/ft2_4FGL_J1506.1+3731_daily_bin15.fits outfile=/scratch/kocevski/38169/cmap_243216001_243475201_4FGL_J1506.1+3731_daily_bin15.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38169/ft1_filtered_4FGL_J1506.1+3731_daily_bin15.fits scfile=/scratch/kocevski/38169/ft2_4FGL_J1506.1+3731_daily_bin15.fits outfile=/scratch/kocevski/38169/cmap_HighResolution_243216001_243475201_4FGL_J1506.1+3731_daily_bin15.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9441       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.280       1.0000         .10000E-03   10000.    
    11 'norm      '    11.559       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2197       1.0000         .10000E-03   10000.    
    16 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.315       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.181       1.0000         .10000E-03   10000.    
    22 'norm      '    5.9056       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.4121       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.408       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0772       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69655       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=   5646.126     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3627 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2769        .16642E-05** at limit **
   2  norm          1.4843        2.3728       -.68535E-06   -.37107E-03
   3  Prefactor     .10000E-03    3.7445       -.14607E-05** at limit **
   4  Prefactor     9.9039        13.546        .50902E-06    .96475E-04
   5  Prefactor     2.9430        3.7421       -.61271E-06   -.31517E-03
   6  norm          .10000E-03    5.0044       -.19136E-05** at limit **
   7  Prefactor     11.046        22.978       -.38450E-04    .26470E-04
   8  norm          .10000E-03    1.8953        .10970E-06** at limit **
   9  Prefactor     .10000E-03    11.373       -.10079E-04** at limit **
  10  Prefactor     12.265        35.004       -.33211E-04    .99988E-05
  11  norm          11.558        7.8255        .28694E-06    .66007E-03
  12  Prefactor     .10000E-03    8.9046        .54040E-05** at limit **
  13  Prefactor     .10000E-03    4.6649       -.11801E-05** at limit **
  14  Prefactor     .10000E-03    1.2174       -.10406E-06** at limit **
  15  norm          2.2188        1.8280       -.31447E-06   -.24984E-03
  16  norm          .10000E-03    1.1003       -.24034E-06** at limit **
  17  Prefactor     .10000E-03    4.1798        .20544E-05** at limit **
  18  Prefactor     .10000E-03    29.456        .20800E-05** at limit **
  19  Prefactor     17.370        10.980       -.97193E-06    .75449E-05
  20  Prefactor     15.313        17.538       -.27120E-05   -.54255E-05
  21  Prefactor     16.182        12.776       -.94463E-06   -.45899E-04
  22  norm          5.9050        1.5671       -.22466E-06    .17398E-03
  23  Prefactor     .10000E-03    3.1630        .26738E-06** at limit **
  24  Prefactor     .10000E-03    15.239        .48511E-05** at limit **
  25  Prefactor     .10000E-03    9.5570        .32397E-06** at limit **
  26  norm          8.4115        13.205       -.19063E-05   -.30895E-04
  27  Prefactor     10.407        11.615       -.43814E-06    .22346E-04
  28  Normalizat    1.0776        .18250        .93275E-05   -.31865E-03
  29  Prefactor     .69618        .16919       -.16296E-05    .33732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.48427
  Prefactor  = 0.0001
  Prefactor  = 9.90392
  Prefactor  = 2.94298
  norm       = 0.0001
  Prefactor  = 11.046
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2648
  norm       = 11.5578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21882
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3704
  Prefactor  = 15.3127
  Prefactor  = 16.182
  norm       = 5.90504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.41147
  Prefactor  = 10.4075
  Normalizat = 1.07762
  Prefactor  = 0.696184
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.126     FROM HESSE     STATUS=OK           551 CALLS     4178 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2774        .15177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4843        2.3397        .14193E-03   -1.5464    
   3  Prefactor     .10000E-03    3.7455        .14194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.9039        13.583        .12729E-03   -1.5078    
   5  Prefactor     2.9430        3.7466        .15526E-03   -1.5365    
   6  norm          .10000E-03    5.0081        .16417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.046        23.002        .12039E-03   -1.5043    
   8  norm          .10000E-03    1.9023        .10101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.265        35.073        .11431E-03   -1.5007    
  11  norm          11.558        7.8283        .58917E-03   -1.5028    
  12  Prefactor     .10000E-03    9.0037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6914        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2182        .80968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2188        1.8219        .86387E-04   -1.5410    
  16  norm          .10000E-03    1.1039        .76914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1884        .14972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.370        10.982        .96098E-04   -1.4874    
  20  Prefactor     15.313        17.516        .10235E-03   -1.4925    
  21  Prefactor     16.182        12.775        .99568E-04   -1.4903    
  22  norm          5.9050        1.5677        .46048E-04   -1.5222    
  23  Prefactor     .10000E-03    3.1705        .13043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.4115        13.200        .13822E-03   -1.5128    
  27  Prefactor     10.407        11.615        .12420E-03   -1.5063    
  28  Normalizat    1.0776        .21287        .22024E-03   -.90473    
  29  Prefactor     .69618        .19712        .26939E-03   -1.0368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44086e-09
Minuit parameter uncertainties:
  1  8.44374e-07
  2  2.33987
  3  2.64129e-06
  4  13.587
  5  3.74689
  6  1.5978e-06
  7  23.0202
  8  6.00813e-07
  9  3.56692e-05
  10  35.1324
  11  7.82903
  12  7.8038e-06
  13  8.33447e-06
  14  2.48831e-06
  15  1.82191
  16  2.04301e-06
  17  8.9128e-07
  18  3.43228e-05
  19  10.9836
  20  17.5219
  21  12.777
  22  1.56767
  23  1.27133e-05
  24  2.76795e-05
  25  1.32749e-05
  26  13.2042
  27  11.6179
  28  0.213035
  29  0.197318
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.219e+00  1.822e+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:  6.962e-01  1.973e-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.078e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/38169/likelihoodResults_243216001_243475201_4FGL_J1506.1+3731_daily_bin15.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) = 5645.92099949
delta logL = 0.204937571682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5645.91404611
delta logL = 0.211890954658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0221       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8958       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71374       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=   5645.914     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      258 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0221        1.8227        .72764E-04    .56871E-03
   2  alpha         2.8959        .83146        .17318E-01    .26773E-04
   3  Normalizat    1.0518        .19939        .22254E-03   -.52517E-04
   4  Prefactor     .71384        .19638        .26615E-03   -.51472E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02207
  alpha      = 2.89593
  Normalizat = 1.0518
  Prefactor  = 0.713838
 **********
 **   18 **HESSE 
 **********

 FCN=   5645.914     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0221        1.7509        .29106E-05   -1.5424    
   2  alpha         2.8959        .79922        .69272E-03    .15904    
   3  Normalizat    1.0518        .19965        .89015E-05   -.91315    
   4  Prefactor     .71384        .19649        .10646E-04   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69524e-11
Minuit parameter uncertainties:
  1  1.7509
  2  0.813885
  3  0.199792
  4  0.196682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38169': 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) = 5645.91404567
delta logL = 0.211891388475

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.022e+00  1.751e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.896e+00  8.139e-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.138e-01  1.967e-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.052e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.90 +/- 0.81
Photon Flux (Free Index): 6.55e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.02e-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/38169/cmap_HighResolution_243216001_243475201_4FGL_J1506.1+3731_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-05', comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='1.39e-05', photon_flux_error='3.91e-08', dlogl='2.12e-01', energy_flux='1.39e-05', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-10 23:37:42.927625', photon_index_error2='0.81', photon_index2='2.90', ts='2.06', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.02e-05', EG='1.08', time_epoch_completed='1631342262.93', return_code='0', job_id='38169', GAL2='0.71', EG2='1.05', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.09e-08', ts2='2.50', photon_index='2.40' WHERE bin_id='15' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:37:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 38169: <4FGL_J1506.1+3731_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin15 226.535 37.5183 243216001 243475201 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 :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            987 sec.

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

