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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin970
RA = 226.535, Dec = 37.5183
tmin = 490752001, tmax = 491011201
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='45141', job_status='RUN', time_executed='2021-09-10 23:46:29.033855', time_epoch_executed='1631342789.03' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45141/ft1_4FGL_J1506.1+3731_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45141/ft2_4FGL_J1506.1+3731_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45141/ft1_4FGL_J1506.1+3731_daily_bin970.fits outfile=/scratch/kocevski/45141/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin970.fits ra=226.535 dec=37.5183 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.87
user 5.55
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45141/ft2_4FGL_J1506.1+3731_daily_bin970.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/45141/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin970.fits evtable="EVENTS" outfile="/scratch/kocevski/45141/ft1_filtered_4FGL_J1506.1+3731_daily_bin970.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45141/ft1_filtered_4FGL_J1506.1+3731_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/45141/ft2_4FGL_J1506.1+3731_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/45141/ltcube_490752001_491011201_4FGL_J1506.1+3731_daily_bin970.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/45141/ft2_4FGL_J1506.1+3731_daily_bin970.fits
.....................!
real 12.38
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45141/ft1_filtered_4FGL_J1506.1+3731_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/45141/ft2_4FGL_J1506.1+3731_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/45141/ltcube_490752001_491011201_4FGL_J1506.1+3731_daily_bin970.fits outfile=/scratch/kocevski/45141/expmap_490752001_491011201_4FGL_J1506.1+3731_daily_bin970.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/45141/ltcube_490752001_491011201_4FGL_J1506.1+3731_daily_bin970.fits
.....................!
real 194.11
user 189.46
sys 4.30

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/45141/ft1_filtered_4FGL_J1506.1+3731_daily_bin970.fits scfile=/scratch/kocevski/45141/ft2_4FGL_J1506.1+3731_daily_bin970.fits outfile=/scratch/kocevski/45141/cmap_490752001_491011201_4FGL_J1506.1+3731_daily_bin970.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45141/ft1_filtered_4FGL_J1506.1+3731_daily_bin970.fits scfile=/scratch/kocevski/45141/ft2_4FGL_J1506.1+3731_daily_bin970.fits outfile=/scratch/kocevski/45141/cmap_HighResolution_490752001_491011201_4FGL_J1506.1+3731_daily_bin970.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.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.530       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.555       1.0000         .10000E-03   10000.    
    11 'norm      '    7.7558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9339       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9658       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9186       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39193E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.793       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8197       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.032       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.814       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2237       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61373       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=   4948.884     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3630 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.729       -.55668E-05** at limit **
   2  norm          .10000E-03    1.3390        .56393E-07** at limit **
   3  Prefactor     .10000E-03    23.959       -.19802E-04** at limit **
   4  Prefactor     35.532        21.572        .17554E-05    .37976E-03
   5  Prefactor     .10000E-03    2.5155       -.16086E-06** at limit **
   6  norm          .10000E-03    10.540        .86444E-05** at limit **
   7  Prefactor     .10000E-03    8.8302       -.28676E-05** at limit **
   8  norm          .10000E-03    3.9355       -.51095E-06** at limit **
   9  Prefactor     9.7170        26.432        .58162E-06   -.15198E-05
  10  Prefactor     32.575        42.151        .23845E-04    .21076E-04
  11  norm          7.7554        7.9493        .62424E-07    .28569E-04
  12  Prefactor     7.2854        11.854       -.15100E-05   -.45413E-04
  13  Prefactor     11.769        10.639       -.30965E-07   -.36678E-04
  14  Prefactor     4.9374        9.6050        .15857E-05   -.10672E-03
  15  norm          3.9667        2.2568        .11249E-06   -.15541E-03
  16  norm          .10000E-03    1.9544       -.10148E-06** at limit **
  17  Prefactor     8.9335        13.715        .19845E-04   -.22273E-04
  18  Prefactor     .10000E-03    27.192        .20935E-04** at limit **
  19  Prefactor     .10000E-03    2.3606       -.10229E-06** at limit **
  20  Prefactor     .10008E-03    52.540        .18914E-04** at limit **
  21  Prefactor     11.759        26.764       -.46824E-04   -.27522E-03
  22  norm          2.8200        1.2665       -.64977E-07   -.14315E-03
  23  Prefactor     .10000E-03    4.0380        .65333E-06** at limit **
  24  Prefactor     .10000E-03    51.575        .12014E-05** at limit **
  25  Prefactor     .10000E-03    11.292       -.69936E-05** at limit **
  26  norm          10.036        12.049        .33812E-06    .65463E-04
  27  Prefactor     10.818        16.340        .32325E-05    .87969E-05
  28  Normalizat    1.2227        .20397        .42418E-05   -.23567E-03
  29  Prefactor     .61449        .17804       -.40654E-05    .17756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.532
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.71704
  Prefactor  = 32.5752
  norm       = 7.75541
  Prefactor  = 7.28542
  Prefactor  = 11.7693
  Prefactor  = 4.93741
  norm       = 3.96673
  norm       = 0.0001
  Prefactor  = 8.9335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 11.7589
  norm       = 2.81998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0364
  Prefactor  = 10.8179
  Normalizat = 1.22274
  Prefactor  = 0.614487
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.884     FROM HESSE     STATUS=OK           549 CALLS     4179 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3431        .79491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.532        21.644        .67233E-04   -1.4515    
   5  Prefactor     .10000E-03    2.6029        .21786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9681        .13627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7170        26.424        .12856E-03   -1.5084    
  10  Prefactor     32.575        42.317        .70228E-04   -1.4566    
  11  norm          7.7554        7.9495        .14399E-03   -1.5151    
  12  Prefactor     7.2854        11.843        .14862E-03   -1.5168    
  13  Prefactor     11.769        10.653        .11678E-03   -1.5022    
  14  Prefactor     4.9374        9.5944        .18107E-03   -1.5264    
  15  norm          3.9667        2.2604        .71478E-04   -1.5310    
  16  norm          .10000E-03    1.9599        .95870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9335        13.634        .13421E-03   -1.5110    
  18  Prefactor     .10000E-03    27.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3643        .10555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10008E-03    54.178        .21273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.759        27.093        .11665E-03   -1.5022    
  22  norm          2.8200        1.2661        .50343E-04   -1.5372    
  23  Prefactor     .10000E-03    4.0543        .13793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    51.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.036        12.046        .12651E-03   -1.5074    
  27  Prefactor     10.818        16.335        .12184E-03   -1.5050    
  28  Normalizat    1.2227        .24987        .22400E-03   -.85903    
  29  Prefactor     .61449        .21511        .27957E-03   -1.0698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09959e-09
Minuit parameter uncertainties:
  1  2.51218e-05
  2  3.5458e-06
  3  0.000165849
  4  21.6487
  5  2.85522e-05
  6  1.94286e-05
  7  2.39597e-06
  8  1.58214e-05
  9  26.4557
  10  42.3564
  11  7.95059
  12  11.8472
  13  10.6548
  14  9.59739
  15  2.2605
  16  1.90058e-05
  17  13.6389
  18  1.36239e-05
  19  3.65982e-06
  20  0.00419697
  21  27.121
  22  1.26611
  23  5.99897e-06
  24  6.75712e-06
  25  2.0767e-05
  26  12.0486
  27  16.3417
  28  0.250114
  29  0.215399
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.967e+00  2.260e+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.145e-01  2.154e-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.223e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.84
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.51e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.42e-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) = 4948.54612826
delta logL = 0.337447757848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4948.52952298
delta logL = 0.354053042276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6900       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9642       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59638       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=   4948.530     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6903        2.0158        .52562E-02    .94065E-04
   2  alpha         1.9644        .42087        .28914       -.25322E-04
   3  Normalizat    1.2511        .19307        .50187E-01    .10022E-05
   4  Prefactor     .59643        .17637        .64042E-01    .19915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.69025
  alpha      = 1.96436
  Normalizat = 1.25112
  Prefactor  = 0.596435
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.530     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6903        2.1827        .71269E-04   -1.5324    
   2  alpha         1.9644        .49228        .11827E-01   -.21593    
   3  Normalizat    1.2511        .23157        .22188E-03   -.85038    
   4  Prefactor     .59643        .21047        .28337E-03   -1.0774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82944e-13
Minuit parameter uncertainties:
  1  2.18271
  2  0.495681
  3  0.231763
  4  0.21075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45141': 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) = 4948.52952279
delta logL = 0.354053227908

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.690e+00  2.183e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.964e+00  4.957e-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:  5.964e-01  2.108e-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.251e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.61
Ra Dec: 226.535 37.518
Photon Index (Free Index): 1.96 +/- 0.50
Photon Flux (Free Index): 6.05e-08 +/- 4.35e-08
Energy Flux (Free Index): 2.91e-05 +/- 1.76e-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/45141/cmap_HighResolution_490752001_491011201_4FGL_J1506.1+3731_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.51e-08', energy_flux2='2.91e-05', photon_flux_error='4.85e-08', dlogl='3.54e-01', energy_flux='2.49e-05', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-09-10 23:57:14.966139', photon_index_error2='0.50', photon_index2='1.96', ts='7.84', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.22', time_epoch_completed='1631343434.97', return_code='0', job_id='45141', GAL2='0.60', EG2='1.25', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.35e-08', ts2='8.61', photon_index='2.40' WHERE bin_id='970' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 45141: <4FGL_J1506.1+3731_daily_bin970> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin970> 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) <bullet0169>, 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:15 2021
Results reported at Fri Sep 10 23:57:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin970 226.535 37.5183 490752001 491011201 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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

