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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin75
RA = 226.535, Dec = 37.5183
tmin = 258768001, tmax = 259027201
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='38255', job_status='RUN', time_executed='2021-09-10 23:23:23.807486', time_epoch_executed='1631341403.81' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38255

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38255/ft1_4FGL_J1506.1+3731_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38255/ft2_4FGL_J1506.1+3731_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38255/ft1_4FGL_J1506.1+3731_daily_bin75.fits outfile=/scratch/kocevski/38255/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin75.fits ra=226.535 dec=37.5183 rad=12.0 tmin=258768001.0 tmax=259027201.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.13
user 0.94
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38255/ft2_4FGL_J1506.1+3731_daily_bin75.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/38255/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/38255/ft1_filtered_4FGL_J1506.1+3731_daily_bin75.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38255/ft1_filtered_4FGL_J1506.1+3731_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/38255/ft2_4FGL_J1506.1+3731_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/38255/ltcube_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.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/38255/ft2_4FGL_J1506.1+3731_daily_bin75.fits
.....................!
real 8.69
user 8.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38255/ft1_filtered_4FGL_J1506.1+3731_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/38255/ft2_4FGL_J1506.1+3731_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/38255/ltcube_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.fits outfile=/scratch/kocevski/38255/expmap_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.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/38255/ltcube_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.fits
.....................!
real 191.02
user 186.09
sys 4.61

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/38255/ft1_filtered_4FGL_J1506.1+3731_daily_bin75.fits scfile=/scratch/kocevski/38255/ft2_4FGL_J1506.1+3731_daily_bin75.fits outfile=/scratch/kocevski/38255/cmap_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.535 yref=37.5183 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38255/ft1_filtered_4FGL_J1506.1+3731_daily_bin75.fits scfile=/scratch/kocevski/38255/ft2_4FGL_J1506.1+3731_daily_bin75.fits outfile=/scratch/kocevski/38255/cmap_HighResolution_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5645       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12468E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    41.134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.634       1.0000         .10000E-03   10000.    
     8 'norm      '    16.313       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.130       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.502       1.0000         .10000E-03   10000.    
    11 'norm      '    .12438E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71752E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21091E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.732       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    19.597       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.080       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .18400E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .58583       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0602       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=   4314.645     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3800 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.538       -.11188E-05** at limit **
   2  norm          1.5653        4.1989       -.18742E-05   -.65684E-03
   3  Prefactor     .10000E-03    22.078        .30244E-06** at limit **
   4  Prefactor     .10000E-03    42.914        .22461E-05** at limit **
   5  Prefactor     .10000E-03    3.3119       -.28346E-06** at limit **
   6  norm          41.128        26.295        .19972E-05    .18502E-05
   7  Prefactor     15.640        29.786        .67834E-06   -.37616E-05
   8  norm          16.308        9.3354        .18781E-06    .32638E-03
   9  Prefactor     66.106        59.711        .16368E-05    .11490E-03
  10  Prefactor     33.496        35.124        .47642E-06    .10020E-03
  11  norm          .10000E-03    26.888       -.94323E-06** at limit **
  12  Prefactor     .10086E-03    61.576        .28401E-04** at limit **
  13  Prefactor     .10000E-03    4.3036        .56981E-07** at limit **
  14  Prefactor     .10216E-03    78.589       -.32908E-04** at limit **
  15  norm          .10000E-03    .63853       -.42496E-07** at limit **
  16  norm          .10000E-03    1.4013       -.26104E-07** at limit **
  17  Prefactor     .10000E-03    3.1385        .92132E-08** at limit **
  18  Prefactor     .10002E-03    83.919       -.60736E-05** at limit **
  19  Prefactor     .10000E-03    3.9914       -.11697E-06** at limit **
  20  Prefactor     18.728        18.982       -.49548E-06    .32662E-04
  21  Prefactor     .10000E-03    7.8579       -.17930E-06** at limit **
  22  norm          19.595        3.9338       -.62375E-07    .84176E-03
  23  Prefactor     27.063        24.741        .14711E-05   -.55698E-04
  24  Prefactor     .10008E-03    220.02       -.16949E-06** at limit **
  25  Prefactor     .10000E-03    8.2536        .18419E-06** at limit **
  26  norm          .10000E-03    9.4850       -.31404E-06** at limit **
  27  Prefactor     .10000E-03    8.9986        .82979E-08** at limit **
  28  Normalizat    .58574        .20798       -.79637E-09    .17566E-03
  29  Prefactor     1.0605        .20376        .40497E-06    .26064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.56527
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 41.1278
  Prefactor  = 15.6395
  norm       = 16.3081
  Prefactor  = 66.1062
  Prefactor  = 33.496
  norm       = 0.0001
  Prefactor  = 0.000100864
  Prefactor  = 0.0001
  Prefactor  = 0.000102164
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 18.7281
  Prefactor  = 0.0001
  norm       = 19.5954
  Prefactor  = 27.0634
  Prefactor  = 0.000100081
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.585737
  Prefactor  = 1.06047
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.645     FROM HESSE     STATUS=OK           551 CALLS     4351 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5653        4.2018        .21302E-03   -1.5458    
   3  Prefactor     .10000E-03    22.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2689        .22829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          41.128        26.244        .62501E-04   -1.4424    
   7  Prefactor     15.640        29.781        .10129E-03   -1.4917    
   8  norm          16.308        9.2985        .99165E-04   -1.4900    
   9  Prefactor     66.106        59.769        .24677E-03   -1.4080    
  10  Prefactor     33.496        35.101        .69231E-04   -1.4550    
  11  norm          .10000E-03    27.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10086E-03    100.96        .47471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3385        .13303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10216E-03    5.8422        .47447E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .65059        .51217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4087        .75914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1447        .11359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    85.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9991        .12817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.728        18.962        .92539E-04   -1.4842    
  21  Prefactor     .10000E-03    7.9022        .17955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          19.595        3.9686        .41761E-04   -1.4822    
  23  Prefactor     27.063        24.780        .76984E-04   -1.4667    
  24  Prefactor     .10008E-03    224.45        .40605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.2617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    9.5623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.0025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .58574        .23678        .29505E-03   -1.0859    
  29  Prefactor     1.0605        .23565        .23188E-03   -.90740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03939e-08
Minuit parameter uncertainties:
  1  0.000418999
  2  4.20258
  3  0.000430755
  4  0.000568109
  5  0.000151717
  6  26.251
  7  29.8088
  8  9.2993
  9  59.8236
  10  35.1226
  11  3.39996e-05
  12  0.0187153
  13  9.34543e-07
  14  0.00711159
  15  7.0016e-07
  16  2.54715e-06
  17  1.02924e-05
  18  0.00266385
  19  1.64585e-05
  20  18.9682
  21  1.66305e-05
  22  3.96865
  23  24.7895
  24  0.00857344
  25  3.16232e-05
  26  3.68568e-05
  27  7.59328e-06
  28  0.237194
  29  0.235884
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  7.002e-07  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.060e+00  2.359e-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.857e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38255/likelihoodResults_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.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) = 4314.65167407
delta logL = -0.00699011246707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4314.64468419
delta logL = -2.294409569e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3927       1.0000          .0000       5.0000    
     3 'Normalizat'    .58575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0605       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=   4314.645     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      229 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .77873        .51292E-03** at limit **
   2  alpha         2.1813        2.9339        .16480       -.45972E-06
   3  Normalizat    .58574        .22481        .29505E-03   -.46199E-04
   4  Prefactor     1.0605        .23423        .23188E-03   -.30397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.18134
  Normalizat = 0.585737
  Prefactor  = 1.06047
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.645     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .66840        .10258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1813        3.7836        .65919E-02   -.12781    
   3  Normalizat    .58574        .22503        .11802E-04   -1.0859    
   4  Prefactor     1.0605        .23446        .92753E-05   -.90740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94477e-10
Minuit parameter uncertainties:
  1  7.07219e-06
  2  103.725
  3  0.225379
  4  0.234689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38255': 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) = 4314.64468192
delta logL = 2.04255593417e-06

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  7.072e-06  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.181e+00  1.037e+02  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.060e+00  2.347e-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.857e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.535 37.518

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/38255/cmap_HighResolution_258768001_259027201_4FGL_J1506.1+3731_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-10 23:34:36.914498', job_id='38255', GAL2='1.06', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631342076.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='75' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:34:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 38255: <4FGL_J1506.1+3731_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin75 226.535 37.5183 258768001 259027201 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            792 sec.

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

