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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin961
RA = 226.535, Dec = 37.5183
tmin = 488419201, tmax = 488678401
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='45128', job_status='RUN', time_executed='2021-09-10 23:46:30.623509', time_epoch_executed='1631342790.62' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45128/ft1_4FGL_J1506.1+3731_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45128/ft2_4FGL_J1506.1+3731_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45128/ft1_4FGL_J1506.1+3731_daily_bin961.fits outfile=/scratch/kocevski/45128/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin961.fits ra=226.535 dec=37.5183 rad=12.0 tmin=488419201.0 tmax=488678401.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.25
user 6.99
sys 0.23

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45128/ft1_filtered_4FGL_J1506.1+3731_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/45128/ft2_4FGL_J1506.1+3731_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/45128/ltcube_488419201_488678401_4FGL_J1506.1+3731_daily_bin961.fits outfile=/scratch/kocevski/45128/expmap_488419201_488678401_4FGL_J1506.1+3731_daily_bin961.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/45128/ltcube_488419201_488678401_4FGL_J1506.1+3731_daily_bin961.fits
.....................!
real 189.85
user 184.79
sys 4.73

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/45128/ft1_filtered_4FGL_J1506.1+3731_daily_bin961.fits scfile=/scratch/kocevski/45128/ft2_4FGL_J1506.1+3731_daily_bin961.fits outfile=/scratch/kocevski/45128/cmap_488419201_488678401_4FGL_J1506.1+3731_daily_bin961.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.52
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.905       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7908       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .62468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2154       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6598       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    104.66       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7017       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9749       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .87306E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.9320       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .67741       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1164       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=   4035.489     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3735 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.906        15.867       -.32920E-06   -.23332E-04
   2  norm          .10000E-03    2.0921       -.59311E-07** at limit **
   3  Prefactor     .10000E-03    8.4283        .40103E-05** at limit **
   4  Prefactor     2.7921        14.090       -.18168E-05   -.18886E-03
   5  Prefactor     .10000E-03    1.3535        .76170E-07** at limit **
   6  norm          .10000E-03    5.3389       -.16451E-05** at limit **
   7  Prefactor     .10000E-03    14.696        .60499E-05** at limit **
   8  norm          .63712        4.8732       -.89238E-06   -.81687E-04
   9  Prefactor     .10000E-03    26.776        .55734E-05** at limit **
  10  Prefactor     .10000E-03    12.364       -.49194E-05** at limit **
  11  norm          .10000E-03    4.7544        .30468E-08** at limit **
  12  Prefactor     39.644        20.833        .94297E-07    .74149E-04
  13  Prefactor     9.2150        7.5248        .10446E-07    .37596E-04
  14  Prefactor     .10000E-03    3.5562       -.10251E-06** at limit **
  15  norm          1.6602        1.5905        .27767E-06    .10555E-03
  16  norm          1.6354        2.5904       -.14399E-06   -.30048E-03
  17  Prefactor     .10000E-03    5.6251        .26425E-05** at limit **
  18  Prefactor     104.64        92.620       -.14563E-04    .10876E-04
  19  Prefactor     4.0286        9.3485       -.60185E-06   -.16133E-03
  20  Prefactor     .10000E-03    20.698       -.79852E-05** at limit **
  21  Prefactor     9.7028        12.398       -.47134E-06   -.44990E-06
  22  norm          1.9748        1.2002        .82702E-07    .47113E-03
  23  Prefactor     .10005E-03    8.4560       -.53348E-06** at limit **
  24  Prefactor     .10000E-03    13.660        .23167E-05** at limit **
  25  Prefactor     .10000E-03    6.4997       -.22516E-05** at limit **
  26  norm          4.9326        8.1355        .35722E-07   -.35838E-04
  27  Prefactor     .10000E-03    9.3538       -.28657E-05** at limit **
  28  Normalizat    .67734        .20146        .14708E-05    .67455E-04
  29  Prefactor     1.1165        .20280        .23497E-06    .10801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7921
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.637122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.6438
  Prefactor  = 9.21504
  Prefactor  = 0.0001
  norm       = 1.66025
  norm       = 1.63541
  Prefactor  = 0.0001
  Prefactor  = 104.643
  Prefactor  = 4.02863
  Prefactor  = 0.0001
  Prefactor  = 9.70278
  norm       = 1.97476
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.93262
  Prefactor  = 0.0001
  Normalizat = 0.677336
  Prefactor  = 1.11647
 **********
 **   18 **HESSE 
 **********

 FCN=   4035.489     FROM HESSE     STATUS=OK           557 CALLS     4292 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.906        15.844        .11610E-03   -1.5018    
   2  norm          .10000E-03    2.1323        .89714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4670        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7921        14.186        .24355E-03   -1.5374    
   5  Prefactor     .10000E-03    1.3605        .72167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3357        .14330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .63712        15.534        .26387E-02   -1.5548    
   9  Prefactor     .10000E-03    26.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7589        .13527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.644        20.792        .63660E-04   -1.4448    
  13  Prefactor     9.2150        7.5148        .13202E-03   -1.5101    
  14  Prefactor     .10000E-03    3.5957        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6602        1.5798        .73219E-04   -1.5450    
  16  norm          1.6354        2.5590        .12395E-03   -1.5452    
  17  Prefactor     .10000E-03    5.6505        .14687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     104.64        92.346        .39306E-04   -1.3658    
  19  Prefactor     4.0286        9.3777        .20090E-03   -1.5307    
  20  Prefactor     .10000E-03    20.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.7028        12.386        .12866E-03   -1.5085    
  22  norm          1.9748        1.2080        .49167E-04   -1.5427    
  23  Prefactor     .10005E-03    9.7929        .49970E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.4947        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.9326        8.1254        .18110E-03   -1.5264    
  27  Prefactor     .10000E-03    9.3561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .67734        .23214        .25633E-03   -1.0479    
  29  Prefactor     1.1165        .23536        .21393E-03   -.88942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03162e-08
Minuit parameter uncertainties:
  1  15.85
  2  1.34437e-06
  3  1.77149e-05
  4  12.5918
  5  1.22131e-06
  6  1.91729e-06
  7  1.05161e-05
  8  6.29322
  9  1.41777e-06
  10  3.58339e-06
  11  4.35556e-07
  12  20.7956
  13  7.51555
  14  3.75268e-06
  15  1.57984
  16  2.5592
  17  4.68326e-06
  18  92.4733
  19  9.38111
  20  3.97185e-05
  21  12.3895
  22  1.20804
  23  0.00146549
  24  1.82165e-06
  25  5.95504e-06
  26  8.12726
  27  9.04149e-07
  28  0.232476
  29  0.235577
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.660e+00  1.580e+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.116e+00  2.356e-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:  6.773e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.56e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 9.90e-06

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

Saving results to:
/scratch/kocevski/45128/likelihoodResults_488419201_488678401_4FGL_J1506.1+3731_daily_bin961.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) = 4035.3856071
delta logL = 0.103360460579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4035.38404993
delta logL = 0.104917631696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7003       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0162       1.0000          .0000       5.0000    
     3 'Normalizat'    .68733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1086       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=   4035.384     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      192 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7003        1.9745        .80652E-02    .87725E-04
   2  alpha         2.0175        .80628        .42170       -.14777E-04
   3  Normalizat    .68721        .19061        .42121E-01    .11183E-04
   4  Prefactor     1.1088        .20061        .37269E-01    .23113E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70032
  alpha      = 2.01751
  Normalizat = 0.687209
  Prefactor  = 1.10877
 **********
 **   18 **HESSE 
 **********

 FCN=   4035.384     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .97E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7003        1.5909        .74250E-04   -1.5447    
   2  alpha         2.0175        .76794        .16453E-01   -.19421    
   3  Normalizat    .68721        .21957        .25467E-03   -1.0440    
   4  Prefactor     1.1088        .23080        .21456E-03   -.89187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65655e-13
Minuit parameter uncertainties:
  1  1.59093
  2  0.781071
  3  0.219847
  4  0.231004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45128': 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) = 4035.38404826
delta logL = 0.104919301077

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.700e+00  1.591e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.018e+00  7.811e-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.109e+00  2.310e-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:  6.872e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.02 +/- 0.78
Photon Flux (Free Index): 2.86e-08 +/- 3.09e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.35e-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/45128/cmap_HighResolution_488419201_488678401_4FGL_J1506.1+3731_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', comment='SUCCESS', photon_flux='3.56e-08', energy_flux2='1.28e-05', photon_flux_error='3.39e-08', dlogl='1.05e-01', energy_flux='1.04e-05', photon_flux2='2.86e-08', job_status='DONE', time_completed='2021-09-10 23:57:43.242649', photon_index_error2='0.78', photon_index2='2.02', ts='2.67', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.35e-05', EG='0.68', time_epoch_completed='1631343463.24', return_code='0', job_id='45128', GAL2='1.11', EG2='0.69', return_code2='0', energy_flux_error='9.90e-06', photon_flux_error2='3.09e-08', ts2='2.89', photon_index='2.40' WHERE bin_id='961' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:57:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 45128: <4FGL_J1506.1+3731_daily_bin961> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin961> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 23:46:12 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:46:15 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:46:15 2021
Terminated at Fri Sep 10 23:57:43 2021
Results reported at Fri Sep 10 23:57:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin961 226.535 37.5183 488419201 488678401 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            691 sec.

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

