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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin584
RA = 226.535, Dec = 37.5183
tmin = 390700801, tmax = 390960001
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='43475', job_status='RUN', time_executed='2021-09-10 23:41:13.313842', time_epoch_executed='1631342473.31' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43475

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43475/ft1_4FGL_J1506.1+3731_daily_bin584.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43475/ft2_4FGL_J1506.1+3731_daily_bin584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43475/ft1_4FGL_J1506.1+3731_daily_bin584.fits outfile=/scratch/kocevski/43475/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin584.fits ra=226.535 dec=37.5183 rad=12.0 tmin=390700801.0 tmax=390960001.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 7.26
user 6.96
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43475/ft2_4FGL_J1506.1+3731_daily_bin584.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/43475/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin584.fits evtable="EVENTS" outfile="/scratch/kocevski/43475/ft1_filtered_4FGL_J1506.1+3731_daily_bin584.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/43475/ft1_filtered_4FGL_J1506.1+3731_daily_bin584.fits" evtable="EVENTS" scfile=/scratch/kocevski/43475/ft2_4FGL_J1506.1+3731_daily_bin584.fits sctable="SC_DATA" outfile=/scratch/kocevski/43475/ltcube_390700801_390960001_4FGL_J1506.1+3731_daily_bin584.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/43475/ft2_4FGL_J1506.1+3731_daily_bin584.fits
.....................!
real 11.68
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43475/ft1_filtered_4FGL_J1506.1+3731_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/43475/ft2_4FGL_J1506.1+3731_daily_bin584.fits sctable="SC_DATA" expcube=/scratch/kocevski/43475/ltcube_390700801_390960001_4FGL_J1506.1+3731_daily_bin584.fits outfile=/scratch/kocevski/43475/expmap_390700801_390960001_4FGL_J1506.1+3731_daily_bin584.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/43475/ltcube_390700801_390960001_4FGL_J1506.1+3731_daily_bin584.fits
.....................!
real 191.08
user 185.40
sys 5.25

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/43475/ft1_filtered_4FGL_J1506.1+3731_daily_bin584.fits scfile=/scratch/kocevski/43475/ft2_4FGL_J1506.1+3731_daily_bin584.fits outfile=/scratch/kocevski/43475/cmap_390700801_390960001_4FGL_J1506.1+3731_daily_bin584.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43475/ft1_filtered_4FGL_J1506.1+3731_daily_bin584.fits scfile=/scratch/kocevski/43475/ft2_4FGL_J1506.1+3731_daily_bin584.fits outfile=/scratch/kocevski/43475/cmap_HighResolution_390700801_390960001_4FGL_J1506.1+3731_daily_bin584.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.55
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .57456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.960       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5770       1.0000         .10000E-03   10000.    
     6 'norm      '    9.5125       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0807       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2930       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1964       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7748       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .83926E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.4918       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.601       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.7321       1.0000         .10000E-03   10000.    
    26 'norm      '    45.980       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.238       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96387       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90355       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=   6846.395     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3691 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4747        .13808E-05** at limit **
   2  norm          .57413        3.6913       -.50120E-06    .10032E-03
   3  Prefactor     .10000E-03    7.3615       -.11141E-05** at limit **
   4  Prefactor     19.965        16.007       -.17006E-06    .42548E-04
   5  Prefactor     1.5772        2.8971       -.70912E-06   -.25270E-05
   6  norm          9.5132        10.860       -.15320E-06    .14002E-04
   7  Prefactor     4.0816        25.315       -.10642E-05    .20593E-05
   8  norm          1.1902        3.2282       -.58383E-06    .15214E-04
   9  Prefactor     .10000E-03    16.426        .16372E-05** at limit **
  10  Prefactor     .10000E-03    56.656       -.39652E-05** at limit **
  11  norm          .10000E-03    2.1176        .64887E-08** at limit **
  12  Prefactor     .10000E-03    5.3856        .54385E-06** at limit **
  13  Prefactor     .10000E-03    5.1266       -.26816E-06** at limit **
  14  Prefactor     6.2928        6.6531       -.22275E-06   -.21691E-04
  15  norm          4.1957        1.8495       -.33771E-07    .55508E-04
  16  norm          1.0779        3.0630       -.70527E-06   -.89701E-04
  17  Prefactor     9.7616        8.4533       -.23769E-06   -.23593E-03
  18  Prefactor     45.484        67.527        .15001E-05   -.31381E-05
  19  Prefactor     .10000E-03    2.6622        .33126E-07** at limit **
  20  Prefactor     .10000E-03    15.429       -.24210E-05** at limit **
  21  Prefactor     .10000E-03    47.606        .98749E-05** at limit **
  22  norm          6.4922        2.1691       -.11848E-08    .25344E-04
  23  Prefactor     10.600        14.203       -.91080E-07    .14338E-05
  24  Prefactor     .10000E-03    7.7623        .29975E-07** at limit **
  25  Prefactor     8.7304        22.046       -.76155E-06   -.31963E-05
  26  norm          45.980        21.407        .31837E-06   -.15291E-04
  27  Prefactor     12.232        23.434       -.20394E-05   -.13280E-04
  28  Normalizat    .96384        .17250        .26977E-06   -.57177E-04
  29  Prefactor     .90349        .16214        .13641E-06   -.34160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.574133
  Prefactor  = 0.0001
  Prefactor  = 19.9652
  Prefactor  = 1.57724
  norm       = 9.51324
  Prefactor  = 4.08158
  norm       = 1.19018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.29285
  norm       = 4.19572
  norm       = 1.07789
  Prefactor  = 9.76162
  Prefactor  = 45.4844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.49222
  Prefactor  = 10.5996
  Prefactor  = 0.0001
  Prefactor  = 8.73036
  norm       = 45.9803
  Prefactor  = 12.2322
  Normalizat = 0.963837
  Prefactor  = 0.903488
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.395     FROM HESSE     STATUS=OK           559 CALLS     4250 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .57413        3.5819        .29743E-03   -1.5556    
   3  Prefactor     .10000E-03    7.3378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.965        16.042        .89651E-04   -1.4814    
   5  Prefactor     1.5772        2.8575        .18137E-03   -1.5457    
   6  norm          9.5132        10.849        .12993E-03   -1.5091    
   7  Prefactor     4.0816        25.356        .19958E-03   -1.5304    
   8  norm          1.1902        3.1550        .23658E-03   -1.5490    
   9  Prefactor     .10000E-03    16.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    57.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1180        .11759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2928        6.6427        .16001E-03   -1.5206    
  15  norm          4.1957        1.8497        .69089E-04   -1.5298    
  16  norm          1.0779        2.9847        .21949E-03   -1.5500    
  17  Prefactor     9.7616        7.8291        .12817E-03   -1.5083    
  18  Prefactor     45.484        67.527        .59452E-04   -1.4358    
  19  Prefactor     .10000E-03    2.6730        .13184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.942        .37448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.4922        2.2178        .49526E-04   -1.5198    
  23  Prefactor     10.600        14.509        .12305E-03   -1.5057    
  24  Prefactor     .10000E-03    7.7626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.7304        22.008        .13565E-03   -1.5117    
  26  norm          45.980        21.380        .59130E-04   -1.4351    
  27  Prefactor     12.232        23.473        .11451E-03   -1.5008    
  28  Normalizat    .96384        .19863        .24359E-03   -.94252    
  29  Prefactor     .90349        .18768        .25519E-03   -.96019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94893e-11
Minuit parameter uncertainties:
  1  3.32016e-06
  2  2.86811
  3  2.09069e-05
  4  16.0457
  5  2.85775
  6  10.8511
  7  20.3589
  8  3.15547
  9  4.01648e-06
  10  0.000172823
  11  3.11787e-07
  12  2.52761e-07
  13  4.68976e-06
  14  6.64351
  15  1.84973
  16  2.98509
  17  7.82988
  18  67.6406
  19  3.94945e-07
  20  3.84355e-05
  21  8.65632e-05
  22  2.21784
  23  14.5134
  24  4.85901e-07
  25  22.0286
  26  21.3833
  27  23.4911
  28  0.198782
  29  0.187818
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  4.196e+00  1.850e+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:  9.035e-01  1.878e-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.638e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.07
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.00e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.16e-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) = 6845.95000583
delta logL = 0.44534621963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6845.94626237
delta logL = 0.449089684231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3249       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9390       1.0000          .0000       5.0000    
     3 'Normalizat'    .92748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93259       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=   6845.946     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      262 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3250        2.0647        .57962E-04    .78731E-03
   2  alpha         2.9391        .65646        .12979E-01    .24545E-04
   3  Normalizat    .92747        .18727        .24763E-03    .48594E-03
   4  Prefactor     .93260        .18821        .25171E-03    .63007E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.32497
  alpha      = 2.93906
  Normalizat = 0.927473
  Prefactor  = 0.932601
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.946     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3250        1.9627        .23185E-05   -1.5343    
   2  alpha         2.9391        .62434        .51914E-03    .17654    
   3  Normalizat    .92747        .18733        .49527E-04   -.95501    
   4  Prefactor     .93260        .18818        .50342E-04   -.95011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14277e-10
Minuit parameter uncertainties:
  1  1.9627
  2  0.631237
  3  0.187457
  4  0.188307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43475': 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) = 6845.94626236
delta logL = 0.449089687262

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.325e+00  1.963e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.939e+00  6.312e-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:  9.326e-01  1.883e-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.275e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.06
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.94 +/- 0.63
Photon Flux (Free Index): 1.12e-07 +/- 4.89e-08
Energy Flux (Free Index): 2.32e-05 +/- 9.97e-06

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/43475/cmap_HighResolution_390700801_390960001_4FGL_J1506.1+3731_daily_bin584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.00e-08', energy_flux2='2.32e-05', photon_flux_error='3.96e-08', dlogl='4.49e-01', energy_flux='2.63e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-10 23:54:37.766193', photon_index_error2='0.63', photon_index2='2.94', ts='9.07', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='9.97e-06', EG='0.96', time_epoch_completed='1631343277.77', return_code='0', job_id='43475', GAL2='0.93', EG2='0.93', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.89e-08', ts2='10.06', photon_index='2.40' WHERE bin_id='584' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:54:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 43475: <4FGL_J1506.1+3731_daily_bin584> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin584> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 23:41:00 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:41:01 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:41:01 2021
Terminated at Fri Sep 10 23:54:38 2021
Results reported at Fri Sep 10 23:54:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin584 226.535 37.5183 390700801 390960001 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 :                                   798.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

