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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin930
RA = 226.535, Dec = 37.5183
tmin = 480384001, tmax = 480643201
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='45084', job_status='RUN', time_executed='2021-09-10 23:46:29.034017', time_epoch_executed='1631342789.03' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45084

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45084/ft1_4FGL_J1506.1+3731_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45084/ft2_4FGL_J1506.1+3731_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45084/ft1_4FGL_J1506.1+3731_daily_bin930.fits outfile=/scratch/kocevski/45084/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin930.fits ra=226.535 dec=37.5183 rad=12.0 tmin=480384001.0 tmax=480643201.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.48
user 3.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45084/ft1_filtered_4FGL_J1506.1+3731_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/45084/ft2_4FGL_J1506.1+3731_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/45084/ltcube_480384001_480643201_4FGL_J1506.1+3731_daily_bin930.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/45084/ft2_4FGL_J1506.1+3731_daily_bin930.fits
.....................!
real 11.78
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45084/ft1_filtered_4FGL_J1506.1+3731_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/45084/ft2_4FGL_J1506.1+3731_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/45084/ltcube_480384001_480643201_4FGL_J1506.1+3731_daily_bin930.fits outfile=/scratch/kocevski/45084/expmap_480384001_480643201_4FGL_J1506.1+3731_daily_bin930.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/45084/ltcube_480384001_480643201_4FGL_J1506.1+3731_daily_bin930.fits
.....................!
real 190.43
user 185.00
sys 5.07

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/45084/ft1_filtered_4FGL_J1506.1+3731_daily_bin930.fits scfile=/scratch/kocevski/45084/ft2_4FGL_J1506.1+3731_daily_bin930.fits outfile=/scratch/kocevski/45084/cmap_480384001_480643201_4FGL_J1506.1+3731_daily_bin930.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1958       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5244       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15429E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.875       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14072E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2907       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9781       1.0000         .10000E-03   10000.    
    16 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10727E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4107       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3674       1.0000         .10000E-03   10000.    
    26 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.6139       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4970       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65715       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=   6841.366     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3706 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2961       -.96897E-07** at limit **
   2  norm          1.1959        2.3524        .23733E-06    .12967E-04
   3  Prefactor     1.4862        24.037       -.21771E-05   -.99835E-04
   4  Prefactor     .10000E-03    44.085       -.62020E-05** at limit **
   5  Prefactor     .10000E-03    2.9352       -.33276E-07** at limit **
   6  norm          .10000E-03    8.9597       -.11936E-05** at limit **
   7  Prefactor     .10000E-03    9.7424        .70611E-07** at limit **
   8  norm          .10000E-03    2.5821       -.33771E-07** at limit **
   9  Prefactor     .10000E-03    68.906        .12798E-05** at limit **
  10  Prefactor     13.769        41.843       -.34927E-05   -.15755E-03
  11  norm          .10000E-03    2.6417       -.24716E-08** at limit **
  12  Prefactor     .10000E-03    40.160       -.56361E-06** at limit **
  13  Prefactor     .10000E-03    9.3973        .14279E-05** at limit **
  14  Prefactor     5.2911        5.9866       -.10429E-06   -.27887E-03
  15  norm          6.9761        2.3311        .43304E-07   -.40174E-03
  16  norm          .10000E-03    1.7213       -.48795E-08** at limit **
  17  Prefactor     6.6751        8.1772        .30692E-06   -.41168E-04
  18  Prefactor     .10000E-03    34.698        .27200E-05** at limit **
  19  Prefactor     .10000E-03    2.1989        .21532E-07** at limit **
  20  Prefactor     .10000E-03    13.666        .77814E-06** at limit **
  21  Prefactor     .10000E-03    9.0204        .59904E-06** at limit **
  22  norm          .10000E-03    .96682        .37604E-06** at limit **
  23  Prefactor     2.4172        11.500       -.85452E-07   -.89690E-04
  24  Prefactor     .10000E-03    13.279       -.25156E-06** at limit **
  25  Prefactor     3.3612        17.718        .10042E-04   -.29642E-03
  26  norm          .10000E-03    9.5076       -.23766E-05** at limit **
  27  Prefactor     6.5778        23.883        .43634E-05    .20911E-03
  28  Normalizat    1.4974        .17632        .16516E-06   -.13804E-03
  29  Prefactor     .65674        .16163       -.14778E-05   -.30863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.19587
  Prefactor  = 1.48621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.769
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.29107
  norm       = 6.97613
  norm       = 0.0001
  Prefactor  = 6.67509
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.41721
  Prefactor  = 0.0001
  Prefactor  = 3.36124
  norm       = 0.000100003
  Prefactor  = 6.57783
  Normalizat = 1.49741
  Prefactor  = 0.65674
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.366     FROM HESSE     STATUS=OK           543 CALLS     4249 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1959        2.2964        .17182E-03   -1.5489    
   3  Prefactor     1.4862        23.990        .34591E-03   -1.5464    
   4  Prefactor     .10000E-03    43.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0477        .27655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5925        .12977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    69.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.769        42.792        .10753E-03   -1.4966    
  11  norm          .10000E-03    2.6426        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.6069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2911        6.0023        .17474E-03   -1.5248    
  15  norm          6.9761        2.3370        .68608E-04   -1.5180    
  16  norm          .10000E-03    1.7327        .10554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6751        8.1313        .15530E-03   -1.5191    
  18  Prefactor     .10000E-03    35.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2021        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5497        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4172        9.0931        .26367E-03   -1.5397    
  24  Prefactor     .10000E-03    13.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.3612        19.670        .11026E-02   -1.5341    
  26  norm          .10000E-03    9.9009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.5778        24.292        .15604E-03   -1.5195    
  28  Normalizat    1.4974        .20868        .21606E-03   -.77851    
  29  Prefactor     .65674        .18799        .29922E-03   -1.0525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37734e-09
Minuit parameter uncertainties:
  1  7.38623e-06
  2  2.29656
  3  11.9475
  4  0.000148152
  5  1.09341e-05
  6  5.88923e-05
  7  1.5921e-05
  8  5.03234e-06
  9  0.000540526
  10  42.8876
  11  5.84649e-07
  12  6.98765e-05
  13  0.000196778
  14  6.00296
  15  2.33702
  16  2.24607e-06
  17  8.13267
  18  0.000730309
  19  6.97101e-07
  20  9.60476e-05
  21  4.89743e-05
  22  5.10194e-05
  23  9.09832
  24  6.45297e-05
  25  16.2702
  26  0.000331826
  27  24.3285
  28  0.208802
  29  0.188166
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  6.976e+00  2.337e+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:  6.567e-01  1.882e-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.497e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.88
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 5.01e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 1.47e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6841.33334011
delta logL = 0.0325619017131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6841.33161261
delta logL = 0.0342894058476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9774       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2868       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64743       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=   6841.332     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9987        3.3391        .37969E-02    .27403E-03
   2  alpha         2.2870        .52080        .29481       -.12969E-04
   3  Normalizat    1.5113        .17059        .48699E-01    .98879E-05
   4  Prefactor     .64753        .16199        .68047E-01    .41785E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99868
  alpha      = 2.28698
  Normalizat = 1.51132
  Prefactor  = 0.64753
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.332     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9987        2.3677        .69862E-04   -1.5179    
   2  alpha         2.2870        .41735        .11577E-01   -.85311E-01
   3  Normalizat    1.5113        .20298        .21528E-03   -.77461    
   4  Prefactor     .64753        .18913        .30113E-03   -1.0562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81619e-12
Minuit parameter uncertainties:
  1  2.36777
  2  0.419329
  3  0.203089
  4  0.189321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45084': 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) = 6841.3315723
delta logL = 0.0343297143254

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  6.999e+00  2.368e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.287e+00  4.193e-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:  6.475e-01  1.893e-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.511e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.88
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.29 +/- 0.42
Photon Flux (Free Index): 1.39e-07 +/- 6.24e-08
Energy Flux (Free Index): 4.50e-05 +/- 1.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/45084/cmap_HighResolution_480384001_480643201_4FGL_J1506.1+3731_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='4.50e-05', photon_flux_error='5.01e-08', dlogl='3.43e-02', energy_flux='4.37e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-10 23:59:14.313761', photon_index_error2='0.42', photon_index2='2.29', ts='17.88', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.50', time_epoch_completed='1631343554.31', return_code='0', job_id='45084', GAL2='0.65', EG2='1.51', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.24e-08', ts2='17.88', photon_index='2.40' WHERE bin_id='930' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 45084: <4FGL_J1506.1+3731_daily_bin930> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin930 226.535 37.5183 480384001 480643201 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

