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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin23
RA = 226.535, Dec = 37.5183
tmin = 245289601, tmax = 245548801
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='38181', job_status='RUN', time_executed='2021-09-10 23:23:40.907122', time_epoch_executed='1631341420.91' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38181

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38181/ft1_4FGL_J1506.1+3731_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38181/ft2_4FGL_J1506.1+3731_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38181/ft1_4FGL_J1506.1+3731_daily_bin23.fits outfile=/scratch/kocevski/38181/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin23.fits ra=226.535 dec=37.5183 rad=12.0 tmin=245289601.0 tmax=245548801.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.52
user 1.31
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38181/ft1_filtered_4FGL_J1506.1+3731_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/38181/ft2_4FGL_J1506.1+3731_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/38181/ltcube_245289601_245548801_4FGL_J1506.1+3731_daily_bin23.fits outfile=/scratch/kocevski/38181/expmap_245289601_245548801_4FGL_J1506.1+3731_daily_bin23.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/38181/ltcube_245289601_245548801_4FGL_J1506.1+3731_daily_bin23.fits
.....................!
real 191.40
user 185.57
sys 5.45

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/38181/ft1_filtered_4FGL_J1506.1+3731_daily_bin23.fits scfile=/scratch/kocevski/38181/ft2_4FGL_J1506.1+3731_daily_bin23.fits outfile=/scratch/kocevski/38181/cmap_245289601_245548801_4FGL_J1506.1+3731_daily_bin23.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38181/ft1_filtered_4FGL_J1506.1+3731_daily_bin23.fits scfile=/scratch/kocevski/38181/ft2_4FGL_J1506.1+3731_daily_bin23.fits outfile=/scratch/kocevski/38181/cmap_HighResolution_245289601_245548801_4FGL_J1506.1+3731_daily_bin23.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/38181/ft1_filtered_4FGL_J1506.1+3731_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/38181/ft2_4FGL_J1506.1+3731_daily_bin23.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38181/Model_4FGL_J1506.1+3731_daily_bin23.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/38181/ft1_filtered_4FGL_J1506.1+3731_daily_bin23.fits.....................!
real 56.47
user 55.04
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7099       1.0000         .10000E-03   10000.    
     6 'norm      '    6.8897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2514       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.488       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .98940E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.543       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1202       1.0000         .10000E-03   10000.    
    16 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12901E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1013       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.461       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.094       1.0000         .10000E-03   10000.    
    22 'norm      '    7.8707       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.601       1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.873       1.0000         .10000E-03   10000.    
    26 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4436       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89679       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87344       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=   6993.790     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3696 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9108        .41767E-08** at limit **
   2  norm          .10000E-03    1.3987       -.52809E-09** at limit **
   3  Prefactor     9.1947        9.0905        .94802E-07    .52100E-04
   4  Prefactor     .10000E-03    6.4089        .23675E-07** at limit **
   5  Prefactor     4.7107        3.2087        .56939E-07    .11823E-04
   6  norm          6.8897        7.3465       -.60890E-09    .28310E-04
   7  Prefactor     4.2518        19.707        .48954E-06    .22908E-04
   8  norm          .10000E-03    2.1195       -.55013E-07** at limit **
   9  Prefactor     .10000E-03    12.077        .20490E-08** at limit **
  10  Prefactor     31.509        25.863        .40759E-07    .23460E-03
  11  norm          5.0386        6.1694        .11431E-06    .46254E-04
  12  Prefactor     7.9962        16.610        .74424E-06   -.12036E-04
  13  Prefactor     .10000E-03    6.6759       -.13652E-05** at limit **
  14  Prefactor     12.543        7.0401        .52186E-07   -.27706E-03
  15  norm          2.1180        1.5142        .11909E-06    .98469E-03
  16  norm          .10000E-03    2.1245        .22579E-06** at limit **
  17  Prefactor     .10000E-03    8.0959        .42525E-05** at limit **
  18  Prefactor     .10000E-03    19.760       -.16784E-07** at limit **
  19  Prefactor     4.1063        7.6785        .29405E-05   -.19752E-04
  20  Prefactor     19.465        17.567        .52648E-07   -.47553E-03
  21  Prefactor     21.065        13.572       -.59175E-06   -.78242E-03
  22  norm          7.8714        1.6087       -.25825E-08    .72916E-04
  23  Prefactor     .10000E-03    3.8372       -.16272E-06** at limit **
  24  Prefactor     14.575        25.129        .64345E-07   -.18281E-03
  25  Prefactor     49.885        21.868       -.11433E-06   -.17953E-03
  26  norm          .10000E-03    16.133       -.11590E-06** at limit **
  27  Prefactor     7.4419        22.281        .41784E-06   -.14496E-04
  28  Normalizat    .89655        .17189       -.72617E-06   -.25490E-03
  29  Prefactor     .87353        .16227       -.42508E-07   -.17029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.19465
  Prefactor  = 0.0001
  Prefactor  = 4.71067
  norm       = 6.8897
  Prefactor  = 4.25181
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5093
  norm       = 5.03862
  Prefactor  = 7.99617
  Prefactor  = 0.000100001
  Prefactor  = 12.543
  norm       = 2.11798
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.10627
  Prefactor  = 19.4652
  Prefactor  = 21.0647
  norm       = 7.87139
  Prefactor  = 0.0001
  Prefactor  = 14.5752
  Prefactor  = 49.8849
  norm       = 0.000100001
  Prefactor  = 7.44186
  Normalizat = 0.89655
  Prefactor  = 0.873528
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.790     FROM HESSE     STATUS=OK           553 CALLS     4249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9123        .18099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4156        .96560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1947        9.1037        .13224E-03   -1.5101    
   4  Prefactor     .10000E-03    6.4247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7107        3.2083        .11925E-03   -1.5274    
   6  norm          6.8897        7.3478        .15285E-03   -1.5183    
   7  Prefactor     4.2518        19.874        .19541E-03   -1.5296    
   8  norm          .10000E-03    2.1281        .11887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.509        25.986        .71404E-04   -1.4585    
  11  norm          5.0386        6.1662        .89561E-03   -1.5259    
  12  Prefactor     7.9962        16.476        .14185E-03   -1.5142    
  13  Prefactor     .10000E-03    21.226        .37001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.543        7.0472        .11311E-03   -1.4999    
  15  norm          2.1180        1.4239        .77396E-04   -1.5417    
  16  norm          .10000E-03    2.1910        .23779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.415        .33561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1063        8.5095        .99532E-03   -1.5303    
  20  Prefactor     19.465        17.591        .90791E-04   -1.4825    
  21  Prefactor     21.065        13.343        .87209E-04   -1.4790    
  22  norm          7.8714        1.6085        .44981E-04   -1.5147    
  23  Prefactor     .10000E-03    3.8507        .15983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.575        25.234        .10482E-03   -1.4944    
  25  Prefactor     49.885        21.837        .56785E-04   -1.4294    
  26  norm          .10000E-03    16.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.4419        22.285        .14700E-03   -1.5162    
  28  Normalizat    .89655        .20166        .24939E-03   -.96581    
  29  Prefactor     .87353        .19035        .25295E-03   -.97072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18003e-09
Minuit parameter uncertainties:
  1  1.45293e-07
  2  1.78621e-07
  3  9.1051
  4  4.50841e-06
  5  3.20843
  6  7.34875
  7  18.3944
  8  3.7861e-06
  9  5.17732e-05
  10  25.9958
  11  6.16693
  12  16.4857
  13  0.000221278
  14  7.04764
  15  1.42393
  16  1.06334e-05
  17  0.000340919
  18  7.62664e-06
  19  8.51198
  20  17.5954
  21  13.3448
  22  1.60852
  23  1.79501e-05
  24  25.2525
  25  21.8407
  26  0.000228267
  27  22.3102
  28  0.201831
  29  0.190492
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.118e+00  1.424e+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.735e-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:  8.966e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.54e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 8.93e-06

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) = 6993.72467889
delta logL = 0.0654130353905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6993.72206979
delta logL = 0.0680221361654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0507       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1319       1.0000          .0000       5.0000    
     3 'Normalizat'    .90972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86448       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=   6993.722     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0507        1.8078        .72168E-02    .21990E-03
   2  alpha         2.1316        .70529        .41730       -.27281E-04
   3  Normalizat    .90971        .16022        .45026E-01    .15780E-04
   4  Prefactor     .86447        .16065        .44551E-01    .14333E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05065
  alpha      = 2.13158
  Normalizat = 0.909709
  Prefactor  = 0.864472
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.722     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0507        1.4589        .78897E-04   -1.5422    
   2  alpha         2.1316        .69025        .18076E-01   -.14791    
   3  Normalizat    .90971        .18692        .24778E-03   -.96120    
   4  Prefactor     .86447        .18587        .25410E-03   -.97394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63676e-12
Minuit parameter uncertainties:
  1  1.45897
  2  0.699542
  3  0.187057
  4  0.186004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38181': 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) = 6993.72206965
delta logL = 0.0680222677693

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.051e+00  1.459e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.132e+00  6.995e-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.645e-01  1.860e-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.097e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.13 +/- 0.70
Photon Flux (Free Index): 3.68e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/38181/cmap_HighResolution_245289601_245548801_4FGL_J1506.1+3731_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.54e-08', energy_flux2='1.42e-05', photon_flux_error='3.05e-08', dlogl='6.80e-02', energy_flux='1.33e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2021-09-10 23:36:50.100978', photon_index_error2='0.70', photon_index2='2.13', ts='4.52', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='0.90', time_epoch_completed='1631342210.1', return_code='0', job_id='38181', GAL2='0.86', EG2='0.91', return_code2='0', energy_flux_error='8.93e-06', photon_flux_error2='3.38e-08', ts2='4.63', photon_index='2.40' WHERE bin_id='23' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 38181: <4FGL_J1506.1+3731_daily_bin23> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin23 226.535 37.5183 245289601 245548801 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 :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

