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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin471
RA = 226.535, Dec = 37.5183
tmin = 361411201, tmax = 361670401
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='40843', job_status='RUN', time_executed='2021-09-10 23:31:11.154879', time_epoch_executed='1631341871.15' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40843/ft1_4FGL_J1506.1+3731_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40843/ft2_4FGL_J1506.1+3731_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40843/ft1_4FGL_J1506.1+3731_daily_bin471.fits outfile=/scratch/kocevski/40843/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin471.fits ra=226.535 dec=37.5183 rad=12.0 tmin=361411201.0 tmax=361670401.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.58
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40843/ft1_filtered_4FGL_J1506.1+3731_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/40843/ft2_4FGL_J1506.1+3731_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/40843/ltcube_361411201_361670401_4FGL_J1506.1+3731_daily_bin471.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/40843/ft2_4FGL_J1506.1+3731_daily_bin471.fits
.....................!
real 12.25
user 11.92
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40843/ft1_filtered_4FGL_J1506.1+3731_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/40843/ft2_4FGL_J1506.1+3731_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/40843/ltcube_361411201_361670401_4FGL_J1506.1+3731_daily_bin471.fits outfile=/scratch/kocevski/40843/expmap_361411201_361670401_4FGL_J1506.1+3731_daily_bin471.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/40843/ltcube_361411201_361670401_4FGL_J1506.1+3731_daily_bin471.fits
.....................!
real 190.07
user 185.29
sys 4.38

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/40843/ft1_filtered_4FGL_J1506.1+3731_daily_bin471.fits scfile=/scratch/kocevski/40843/ft2_4FGL_J1506.1+3731_daily_bin471.fits outfile=/scratch/kocevski/40843/cmap_361411201_361670401_4FGL_J1506.1+3731_daily_bin471.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40843/ft1_filtered_4FGL_J1506.1+3731_daily_bin471.fits scfile=/scratch/kocevski/40843/ft2_4FGL_J1506.1+3731_daily_bin471.fits outfile=/scratch/kocevski/40843/cmap_HighResolution_361411201_361670401_4FGL_J1506.1+3731_daily_bin471.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7609       1.0000         .10000E-03   10000.    
     2 'norm      '    74.141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.627       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.867       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5366       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6953       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4394       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21480E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.677       1.0000         .10000E-03   10000.    
    22 'norm      '    6.7712       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.192       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .52089       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1984       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=   6529.407     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3691 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7658        12.195        .65926E-07    .49545E-04
   2  norm          74.139        10.261       -.21148E-07    .93426E-04
   3  Prefactor     .10000E-03    17.387       -.52986E-06** at limit **
   4  Prefactor     14.633        13.073       -.13411E-06    .73753E-04
   5  Prefactor     .10000E-03    4.2535       -.10103E-06** at limit **
   6  norm          .10000E-03    6.0206       -.95146E-08** at limit **
   7  Prefactor     .10000E-03    30.714       -.27701E-06** at limit **
   8  norm          12.932        7.0401       -.12051E-07    .33696E-04
   9  Prefactor     .10000E-03    25.185        .50390E-06** at limit **
  10  Prefactor     11.923        28.070       -.31175E-05   -.11499E-03
  11  norm          6.5367        6.5789       -.10761E-07    .11168E-04
  12  Prefactor     .10000E-03    8.7819       -.38333E-06** at limit **
  13  Prefactor     .10000E-03    2.0782       -.51308E-08** at limit **
  14  Prefactor     5.6948        8.6671       -.25883E-07   -.58332E-04
  15  norm          3.4392        1.5818       -.44331E-08    .10974E-04
  16  norm          1.9086        4.4848        .17797E-05    .13229E-04
  17  Prefactor     .10036E-03    7.3993       -.13310E-05** at limit **
  18  Prefactor     .10000E-03    28.591        .13317E-06** at limit **
  19  Prefactor     .10000E-03    2.2684       -.31920E-08** at limit **
  20  Prefactor     .10000E-03    21.688       -.71458E-06** at limit **
  21  Prefactor     35.681        17.337        .14500E-05   -.30749E-03
  22  norm          6.7710        2.0450       -.10244E-07   -.19430E-04
  23  Prefactor     17.192        12.479       -.51386E-07   -.15069E-04
  24  Prefactor     .10000E-03    11.340        .65150E-07** at limit **
  25  Prefactor     .10000E-03    11.427       -.25696E-09** at limit **
  26  norm          .10000E-03    7.1785        .38116E-07** at limit **
  27  Prefactor     .10000E-03    10.150        .14465E-06** at limit **
  28  Normalizat    .52135        .19565        .10077E-05   -.65732E-04
  29  Prefactor     1.1979        .18051       -.14136E-06    .57007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76585
  norm       = 74.1394
  Prefactor  = 0.0001
  Prefactor  = 14.6334
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9316
  Prefactor  = 0.0001
  Prefactor  = 11.9235
  norm       = 6.53672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69475
  norm       = 3.43921
  norm       = 1.90858
  Prefactor  = 0.000100356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6814
  norm       = 6.77105
  Prefactor  = 17.1916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.521351
  Prefactor  = 1.1979
 **********
 **   18 **HESSE 
 **********

 FCN=   6529.407     FROM HESSE     STATUS=OK           549 CALLS     4240 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7658        12.171        .92200E-03   -1.5271    
   2  norm          74.139        10.255        .46629E-04   -1.3984    
   3  Prefactor     .10000E-03    17.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.633        13.058        .10472E-03   -1.4943    
   5  Prefactor     .10000E-03    4.3786        .32508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.0262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.932        7.0383        .55694E-03   -1.4989    
   9  Prefactor     .10000E-03    25.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.923        28.078        .11629E-03   -1.5017    
  11  norm          6.5367        6.5807        .15697E-03   -1.5197    
  12  Prefactor     .10000E-03    8.7995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0818        .11374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6948        8.6632        .16831E-03   -1.5231    
  15  norm          3.4392        1.5809        .66242E-04   -1.5337    
  16  norm          1.9086        4.5119        .11650E-02   -1.5432    
  17  Prefactor     .10036E-03    53.670        .39147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2703        .11885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.681        17.693        .67094E-04   -1.4513    
  22  norm          6.7710        2.0579        .52983E-04   -1.5187    
  23  Prefactor     17.192        12.556        .96595E-04   -1.4878    
  24  Prefactor     .10000E-03    11.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.2093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .52135        .22624        .34475E-03   -1.1144    
  29  Prefactor     1.1979        .21202        .23561E-03   -.86396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7068e-09
Minuit parameter uncertainties:
  1  12.177
  2  10.2556
  3  5.23163e-05
  4  13.0608
  5  1.01447e-05
  6  8.19325e-07
  7  0.000128554
  8  7.03876
  9  4.51123e-05
  10  28.1094
  11  6.58141
  12  3.47489e-06
  13  5.00358e-07
  14  8.66509
  15  1.58091
  16  4.51274
  17  0.00874423
  18  5.02759e-06
  19  4.13635e-07
  20  6.10184e-05
  21  17.6957
  22  2.05794
  23  12.5578
  24  3.59986e-06
  25  1.68209e-05
  26  8.94835e-06
  27  3.72276e-06
  28  0.226637
  29  0.212168
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.439e+00  1.581e+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:  1.198e+00  2.122e-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:  5.214e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.06
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 9.91e-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) = 6526.00667258
delta logL = 3.40025274313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6525.70924139
delta logL = 3.69768393548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1560       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2837       1.0000          .0000       5.0000    
     3 'Normalizat'    .57278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1650       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=   6525.709     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1560        1.1215        .70143E-02    .23546E-02
   2  alpha         1.2837        .27588        .20463       -.42436E-04
   3  Normalizat    .57280        .17517        .74402E-01    .39286E-04
   4  Prefactor     1.1650        .17630        .53864E-01   -.14666E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15598
  alpha      = 1.28375
  Normalizat = 0.572801
  Prefactor  = 1.16499
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.709     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1560        1.4441        .52631E-04   -1.5414    
   2  alpha         1.2837        .36626        .87452E-02   -.50808    
   3  Normalizat    .57280        .20617        .32942E-03   -1.0915    
   4  Prefactor     1.1650        .20788        .23814E-03   -.87416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58206e-10
Minuit parameter uncertainties:
  1  1.44413
  2  0.367996
  3  0.206448
  4  0.208023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40843': 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) = 6525.70924135
delta logL = 3.69768397088

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.156e+00  1.444e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.284e+00  3.680e-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:  1.165e+00  2.080e-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:  5.728e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.40
Ra Dec: 226.535 37.518
Photon Index (Free Index): 1.28 +/- 0.37
Photon Flux (Free Index): 3.22e-08 +/- 1.89e-08
Energy Flux (Free Index): 6.24e-05 +/- 4.50e-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/40843/cmap_HighResolution_361411201_361670401_4FGL_J1506.1+3731_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='6.24e-05', photon_flux_error='3.39e-08', dlogl='3.70e+00', energy_flux='2.16e-05', photon_flux2='3.22e-08', job_status='DONE', time_completed='2021-09-10 23:43:31.472974', photon_index_error2='0.37', photon_index2='1.28', ts='14.06', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='4.50e-05', EG='0.52', time_epoch_completed='1631342611.47', return_code='0', job_id='40843', GAL2='1.16', EG2='0.57', return_code2='0', energy_flux_error='9.91e-06', photon_flux_error2='1.89e-08', ts2='21.40', photon_index='2.40' WHERE bin_id='471' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:43:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 40843: <4FGL_J1506.1+3731_daily_bin471> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin471> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 23:31:01 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:31:03 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:31:03 2021
Terminated at Fri Sep 10 23:43:34 2021
Results reported at Fri Sep 10 23:43:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin471 226.535 37.5183 361411201 361670401 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 :                                   736.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            753 sec.

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

