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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin935
RA = 226.535, Dec = 37.5183
tmin = 481680001, tmax = 481939201
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='45092', job_status='RUN', time_executed='2021-09-10 23:46:29.807229', time_epoch_executed='1631342789.81' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45092/ft1_4FGL_J1506.1+3731_daily_bin935.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45092/ft2_4FGL_J1506.1+3731_daily_bin935.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45092/ft1_4FGL_J1506.1+3731_daily_bin935.fits outfile=/scratch/kocevski/45092/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin935.fits ra=226.535 dec=37.5183 rad=12.0 tmin=481680001.0 tmax=481939201.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.61
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45092/ft1_filtered_4FGL_J1506.1+3731_daily_bin935.fits" evtable="EVENTS" scfile=/scratch/kocevski/45092/ft2_4FGL_J1506.1+3731_daily_bin935.fits sctable="SC_DATA" outfile=/scratch/kocevski/45092/ltcube_481680001_481939201_4FGL_J1506.1+3731_daily_bin935.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/45092/ft2_4FGL_J1506.1+3731_daily_bin935.fits
.....................!
real 11.69
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45092/ft1_filtered_4FGL_J1506.1+3731_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/45092/ft2_4FGL_J1506.1+3731_daily_bin935.fits sctable="SC_DATA" expcube=/scratch/kocevski/45092/ltcube_481680001_481939201_4FGL_J1506.1+3731_daily_bin935.fits outfile=/scratch/kocevski/45092/expmap_481680001_481939201_4FGL_J1506.1+3731_daily_bin935.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/45092/ltcube_481680001_481939201_4FGL_J1506.1+3731_daily_bin935.fits
.....................!
real 190.79
user 185.83
sys 4.62

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/45092/ft1_filtered_4FGL_J1506.1+3731_daily_bin935.fits scfile=/scratch/kocevski/45092/ft2_4FGL_J1506.1+3731_daily_bin935.fits outfile=/scratch/kocevski/45092/cmap_481680001_481939201_4FGL_J1506.1+3731_daily_bin935.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45092/ft1_filtered_4FGL_J1506.1+3731_daily_bin935.fits scfile=/scratch/kocevski/45092/ft2_4FGL_J1506.1+3731_daily_bin935.fits outfile=/scratch/kocevski/45092/cmap_HighResolution_481680001_481939201_4FGL_J1506.1+3731_daily_bin935.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.535 yref=37.5183 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43247       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.622       1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7556       1.0000         .10000E-03   10000.    
    11 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8285       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4428       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0877       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14225E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10929E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.163       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    14.610       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88401       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=   5991.921     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3683 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8390        .14840E-05** at limit **
   2  norm          6.4239        3.6329        .26949E-06    .68104E-05
   3  Prefactor     .10000E-03    5.7223       -.35427E-05** at limit **
   4  Prefactor     .10000E-03    4.4326       -.22224E-06** at limit **
   5  Prefactor     .42385        2.3198       -.36740E-06   -.57906E-04
   6  norm          .10000E-03    8.5392       -.75328E-06** at limit **
   7  Prefactor     14.620        15.689        .37480E-06   -.11659E-04
   8  norm          .10000E-03    5.3601        .26214E-05** at limit **
   9  Prefactor     .10000E-03    23.547       -.82712E-05** at limit **
  10  Prefactor     6.7464        55.416       -.16100E-04    .49131E-04
  11  norm          .10000E-03    3.4356       -.15580E-06** at limit **
  12  Prefactor     12.112        15.141        .30112E-05   -.13051E-03
  13  Prefactor     2.8294        4.8810       -.48497E-06   -.28019E-03
  14  Prefactor     1.4427        4.4200       -.16266E-05   -.82901E-03
  15  norm          6.0878        2.0529       -.69479E-07   -.12085E-03
  16  norm          6.3554        3.6029       -.27701E-06    .10846E-04
  17  Prefactor     .10000E-03    13.478       -.28288E-06** at limit **
  18  Prefactor     .10000E-03    27.182        .59649E-05** at limit **
  19  Prefactor     .10000E-03    3.4876        .15916E-06** at limit **
  20  Prefactor     .10000E-03    25.788        .39565E-06** at limit **
  21  Prefactor     .10000E-03    16.928        .28221E-05** at limit **
  22  norm          .10000E-03    .79940        .50589E-07** at limit **
  23  Prefactor     29.170        12.432       -.37881E-06   -.13060E-04
  24  Prefactor     .10000E-03    25.750       -.85402E-06** at limit **
  25  Prefactor     .10000E-03    25.997        .57103E-06** at limit **
  26  norm          14.607        16.164       -.35717E-06   -.29599E-04
  27  Prefactor     .10000E-03    102.86       -.17218E-05** at limit **
  28  Normalizat    1.0790        .19076        .84681E-06    .32945E-05
  29  Prefactor     .88392        .18381        .16010E-06    .32283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.4239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.423849
  norm       = 0.0001
  Prefactor  = 14.6205
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.74636
  norm       = 0.0001
  Prefactor  = 12.1121
  Prefactor  = 2.82944
  Prefactor  = 1.44267
  norm       = 6.08778
  norm       = 6.3554
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.17
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6072
  Prefactor  = 0.0001
  Normalizat = 1.07898
  Prefactor  = 0.88392
 **********
 **   18 **HESSE 
 **********

 FCN=   5991.921     FROM HESSE     STATUS=OK           553 CALLS     4236 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4239        3.6317        .10755E-03   -1.5201    
   3  Prefactor     .10000E-03    5.6981        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4369        .15916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42385        9.3076        .22213E-02   -1.5578    
   6  norm          .10000E-03    8.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.620        15.708        .10474E-03   -1.4943    
   8  norm          .10000E-03    5.4373        .34780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7464        54.936        .15437E-03   -1.5188    
  11  norm          .10000E-03    3.4408        .14012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.112        15.048        .11506E-03   -1.5012    
  13  Prefactor     2.8294        4.8787        .21638E-03   -1.5372    
  14  Prefactor     1.4427        4.6193        .28760E-03   -1.5468    
  15  norm          6.0878        2.0539        .60949E-04   -1.5214    
  16  norm          6.3554        3.5883        .10647E-03   -1.5204    
  17  Prefactor     .10000E-03    13.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4967        .14117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8027        .12644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.170        11.782        .74190E-04   -1.4627    
  24  Prefactor     .10000E-03    25.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          14.607        16.130        .10479E-03   -1.4943    
  27  Prefactor     .10000E-03    107.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0790        .22578        .23725E-03   -.90430    
  29  Prefactor     .88392        .21676        .25899E-03   -.96705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59136e-08
Minuit parameter uncertainties:
  1  3.43899e-05
  2  3.63183
  3  6.86757e-05
  4  1.93329e-06
  5  3.97265
  6  1.90092e-05
  7  15.7126
  8  8.06604e-05
  9  0.000323471
  10  38.551
  11  2.86102e-06
  12  15.053
  13  4.87942
  14  4.62044
  15  2.05388
  16  3.58842
  17  1.51928e-05
  18  0.000265427
  19  2.84963e-06
  20  5.61997e-05
  21  0.000130073
  22  8.9097e-06
  23  11.7834
  24  4.74527e-05
  25  1.24979e-05
  26  16.1344
  27  1.47059e-06
  28  0.225984
  29  0.216972
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  6.088e+00  2.054e+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:  8.839e-01  2.170e-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.079e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.09
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 4.40e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 1.29e-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) = 5991.83704084
delta logL = 0.0838754141323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5991.83350711
delta logL = 0.0874091445685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1998       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2468       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87303       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=   5991.834     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      192 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1998        2.4599        .40306E-02    .21221E-03
   2  alpha         2.2468        .39945        .24117       -.47720E-05
   3  Normalizat    1.0940        .18435        .38252E-01   -.86655E-05
   4  Prefactor     .87303        .18322        .44660E-01    .26830E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.1998
  alpha      = 2.24683
  Normalizat = 1.09396
  Prefactor  = 0.873027
 **********
 **   18 **HESSE 
 **********

 FCN=   5991.834     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1998        2.0952        .62452E-04   -1.5210    
   2  alpha         2.2468        .35658        .10174E-01   -.10144    
   3  Normalizat    1.0940        .21749        .23589E-03   -.89946    
   4  Prefactor     .87303        .21523        .26040E-03   -.97090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57222e-12
Minuit parameter uncertainties:
  1  2.09525
  2  0.357811
  3  0.217666
  4  0.215438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45092': 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) = 5991.8335071
delta logL = 0.0874091450805

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  6.200e+00  2.095e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.247e+00  3.578e-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:  8.730e-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.094e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.23
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.25 +/- 0.36
Photon Flux (Free Index): 1.20e-07 +/- 4.81e-08
Energy Flux (Free Index): 4.04e-05 +/- 1.50e-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/45092/cmap_HighResolution_481680001_481939201_4FGL_J1506.1+3731_daily_bin935.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='4.04e-05', photon_flux_error='4.40e-08', dlogl='8.74e-02', energy_flux='3.82e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-10 23:58:12.122654', photon_index_error2='0.36', photon_index2='2.25', ts='21.09', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.08', time_epoch_completed='1631343492.12', return_code='0', job_id='45092', GAL2='0.87', EG2='1.09', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.81e-08', ts2='21.23', photon_index='2.40' WHERE bin_id='935' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:58:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 45092: <4FGL_J1506.1+3731_daily_bin935> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin935> 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) <bullet0287>, 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:58:12 2021
Results reported at Fri Sep 10 23:58:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin935 226.535 37.5183 481680001 481939201 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 :                                   695.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            723 sec.

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

