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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin1205
RA = 226.535, Dec = 37.5183
tmin = 551664001, tmax = 551923201
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='46657', job_status='RUN', time_executed='2021-09-10 23:51:28.934449', time_epoch_executed='1631343088.93' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46657/ft1_4FGL_J1506.1+3731_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46657/ft2_4FGL_J1506.1+3731_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46657/ft1_4FGL_J1506.1+3731_daily_bin1205.fits outfile=/scratch/kocevski/46657/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin1205.fits ra=226.535 dec=37.5183 rad=12.0 tmin=551664001.0 tmax=551923201.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.73
user 3.52
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46657/ft1_filtered_4FGL_J1506.1+3731_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/46657/ft2_4FGL_J1506.1+3731_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/46657/ltcube_551664001_551923201_4FGL_J1506.1+3731_daily_bin1205.fits outfile=/scratch/kocevski/46657/expmap_551664001_551923201_4FGL_J1506.1+3731_daily_bin1205.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/46657/ltcube_551664001_551923201_4FGL_J1506.1+3731_daily_bin1205.fits
.....................!
real 189.97
user 184.95
sys 4.64

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/46657/ft1_filtered_4FGL_J1506.1+3731_daily_bin1205.fits scfile=/scratch/kocevski/46657/ft2_4FGL_J1506.1+3731_daily_bin1205.fits outfile=/scratch/kocevski/46657/cmap_551664001_551923201_4FGL_J1506.1+3731_daily_bin1205.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/46657/ft1_filtered_4FGL_J1506.1+3731_daily_bin1205.fits scfile=/scratch/kocevski/46657/ft2_4FGL_J1506.1+3731_daily_bin1205.fits outfile=/scratch/kocevski/46657/cmap_HighResolution_551664001_551923201_4FGL_J1506.1+3731_daily_bin1205.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11162E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10975E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    493.39       1.0000         .10000E-03   10000.    
    11 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    403.37       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11227E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    121.86       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68166       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=   76.01060     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3525 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1052.3       -.45862E-03** at limit **
   2  norm          .10000E-03    98.025        .62860E-04** at limit **
   3  Prefactor     .10000E-03    335.29        .17638E-03** at limit **
   4  Prefactor     .10000E-03    820.22       -.22369E-03** at limit **
   5  Prefactor     .10000E-03    85.746        .22806E-04** at limit **
   6  norm          .10000E-03    366.43        .18879E-03** at limit **
   7  Prefactor     .10000E-03    1065.1       -.47018E-03** at limit **
   8  norm          .10000E-03    86.796        .29596E-04** at limit **
   9  Prefactor     .10000E-03    936.61       -.34711E-03** at limit **
  10  Prefactor     493.46        538.57        .29221E-04   -.28554E-05
  11  norm          .10000E-03    110.65        .40135E-04** at limit **
  12  Prefactor     .10000E-03    156.86       -.82388E-04** at limit **
  13  Prefactor     .10000E-03    71.071       -.89085E-04** at limit **
  14  Prefactor     .10000E-03    632.73       -.89320E-05** at limit **
  15  norm          .10000E-03    19.926        .82999E-06** at limit **
  16  norm          .10000E-03    61.851        .32115E-04** at limit **
  17  Prefactor     .10000E-03    146.62       -.70839E-04** at limit **
  18  Prefactor     403.14        790.99       -.12056E-03   -.38799E-05
  19  Prefactor     .10000E-03    32.938       -.14900E-06** at limit **
  20  Prefactor     .10000E-03    221.51        .22642E-05** at limit **
  21  Prefactor     .10000E-03    133.63       -.40502E-04** at limit **
  22  norm          .10000E-03    7.3721        .89001E-06** at limit **
  23  Prefactor     .10000E-03    28.931        .28367E-06** at limit **
  24  Prefactor     .10000E-03    124.96       -.11635E-04** at limit **
  25  Prefactor     .10000E-03    344.46        .18153E-03** at limit **
  26  norm          121.90        213.98        .36116E-04   -.43844E-04
  27  Prefactor     .10000E-03    211.75       -.19055E-04** at limit **
  28  Normalizat    .10000E-01    .95319        .26005E-05** at limit **
  29  Prefactor     .68234        .54451       -.11236E-04   -.11737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 493.459
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 403.135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 121.9
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.682342
 **********
 **   18 **HESSE 
 **********

 FCN=   76.01060     FROM HESSE     STATUS=OK           525 CALLS     4050 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1052.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    98.025        .84711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    335.30        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    820.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    85.737        .79206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    366.44        .16453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1065.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    86.796        .79697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    936.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     493.46        538.11        .92346E-04   -1.1228    
  11  norm          .10000E-03    110.65        .90022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    156.86        .10726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    71.043        .72081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    632.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.931        .38109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    61.854        .67250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    146.62        .10368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     403.14        789.69        .10165E-03   -1.1665    
  19  Prefactor     .10000E-03    32.938        .49051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    221.52        .12761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    133.63        .98965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.3986        .23155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.931        .45967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    124.96        .95686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    344.51        .15945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          121.90        214.52        .18229E-03   -1.3495    
  27  Prefactor     .10000E-03    211.75        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .97004        .52231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .68234        .53642        .16763E-03   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05441e-10
Minuit parameter uncertainties:
  1  4.99858e-06
  2  1.58742e-05
  3  1.21209e-05
  4  5.9828e-05
  5  0.000148974
  6  1.29162e-06
  7  0.000135789
  8  4.61121e-07
  9  0.000106732
  10  543.81
  11  3.04423e-06
  12  8.01795e-05
  13  0.000196457
  14  0.000101498
  15  0.000415244
  16  3.05114e-05
  17  0.000131576
  18  812.607
  19  3.28625e-06
  20  0.000278205
  21  0.000117406
  22  0.000108609
  23  6.09235e-05
  24  4.26082e-05
  25  6.97594e-05
  26  215.91
  27  0.000191561
  28  1.75279e-05
  29  0.540549
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  4.152e-04  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:  6.823e-01  5.405e-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:  1.000e-02  1.753e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 1.74e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46657/likelihoodResults_551664001_551923201_4FGL_J1506.1+3731_daily_bin1205.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) = 76.0108061099
delta logL = -0.000205996098288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 76.0106016866
delta logL = -1.57283177771e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7339       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68222       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=   76.01060     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      276 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6331.5        .30287E-02** at limit **
   2  alpha         2.6244        3.6859        .20000        .85665E-08
   3  Normalizat    .10000E-01    .40197        .52232E-02** at limit **
   4  Prefactor     .68232        .31463        .16764E-03   -.19680E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.62442
  Normalizat = 0.01
  Prefactor  = 0.682324
 **********
 **   18 **HESSE 
 **********

 FCN=   76.01060     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.318        .38507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6244        3.3222        .80000E-02    .49789E-01
   3  Normalizat    .10000E-01    .97013        .10446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68232        .49167        .33527E-04   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52525e-09
Minuit parameter uncertainties:
  1  0.000108616
  2  728.008
  3  9.21544e-06
  4  0.494845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46657': 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) = 76.0106000673
delta logL = 4.65210234779e-08

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  1.086e-04  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.624e+00  7.280e+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:  6.823e-01  4.948e-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:  1.000e-02  9.215e-06  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/46657/cmap_HighResolution_551664001_551923201_4FGL_J1506.1+3731_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-04', job_status='DONE', photon_flux_upper_limit='1.74e-06', time_completed='2021-09-10 23:57:03.861422', job_id='46657', GAL2='0.68', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631343423.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='4.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1205' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 46657: <4FGL_J1506.1+3731_daily_bin1205> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin1205 226.535 37.5183 551664001 551923201 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 :                                   331.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             485.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   347 sec.
    Turnaround time :                            349 sec.

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

