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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin624
RA = 226.273, Dec = 3.4472
tmin = 401068801, tmax = 401328001
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='13900', job_status='RUN', time_executed='2021-09-10 22:08:31.543410', time_epoch_executed='1631336911.54' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13900/ft1_4FGL_J1505.0+0326_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13900/ft1_4FGL_J1505.0+0326_daily_bin624.fits outfile=/scratch/kocevski/13900/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin624.fits ra=226.273 dec=3.4472 rad=12.0 tmin=401068801.0 tmax=401328001.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.38
user 3.14
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.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/13900/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin624.fits evtable="EVENTS" outfile="/scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/13900/ltcube_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.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/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits
.....................!
real 11.92
user 11.60
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/13900/ltcube_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.fits outfile=/scratch/kocevski/13900/expmap_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.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/13900/ltcube_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.fits
.....................!
real 192.62
user 187.48
sys 4.75

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1505.0+0326 @ 226.273 3.4472

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits scfile=/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits outfile=/scratch/kocevski/13900/cmap_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.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.273 yref=3.4472 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits scfile=/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits outfile=/scratch/kocevski/13900/cmap_HighResolution_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.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.273 yref=3.4472 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13900/Model_4FGL_J1505.0+0326_daily_bin624.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/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits.....................!
real 58.67
user 57.14
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits', '/scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits', expMap='/scratch/kocevski/13900/expmap_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.fits', expCube='/scratch/kocevski/13900/ltcube_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13900/Model_4FGL_J1505.0+0326_daily_bin624.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1505.0+0326'

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.811e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.490e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  4.151e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/13900/ft1_filtered_4FGL_J1505.0+0326_daily_bin624.fits
Spacecraft file(s): /scratch/kocevski/13900/ft2_4FGL_J1505.0+0326_daily_bin624.fits
Exposure map: /scratch/kocevski/13900/expmap_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.fits
Exposure cube: /scratch/kocevski/13900/ltcube_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13900/Model_4FGL_J1505.0+0326_daily_bin624.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) = 7266.53209184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.865       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.428       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2529       1.0000         .10000E-03   10000.    
     8 'norm      '    .46818       1.0000         .10000E-03   10000.    
     9 'norm      '    .11893E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    53.731       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15445E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1288       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6865       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .85849       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7266.523     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1900 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.866        20.638        .47419E-06    .12187E-04
   2  norm          .10000E-03    6.1364        .30872E-05** at limit **
   3  Prefactor     .10000E-03    19.372        .70634E-05** at limit **
   4  Prefactor     .10000E-03    11.767        .36080E-05** at limit **
   5  norm          .10000E-03    6.7801       -.58192E-05** at limit **
   6  Prefactor     45.429        29.646        .66358E-06    .12253E-04
   7  Prefactor     9.2532        11.555       -.61181E-09   -.20779E-04
   8  norm          .46822        .18785        .69056E-08   -.47915E-03
   9  norm          .10000E-03    1.1438        .74029E-07** at limit **
  10  norm          .10000E-03    2.0336        .21007E-07** at limit **
  11  norm          53.728        11.835        .12568E-06   -.47769E-04
  12  norm          2.8088        3.1795       -.20856E-07   -.26414E-03
  13  Prefactor     .10000E-03    40.281       -.40801E-05** at limit **
  14  Prefactor     .10001E-03    3.3750        .14345E-05** at limit **
  15  Prefactor     .10000E-03    13.383       -.96609E-05** at limit **
  16  Prefactor     8.1309        5.1428        .73099E-06   -.24548E-03
  17  norm          1.6854        4.9456        .30232E-05   -.82391E-03
  18  Normalizat    .85825        .24702       -.10445E-05   -.18760E-03
  19  Prefactor     1.1215        .12555       -.25124E-06   -.31425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8665
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.4291
  Prefactor  = 9.25324
  norm       = 0.468215
  norm       = 0.0001
  norm       = 0.0001
  norm       = 53.7282
  norm       = 2.80875
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100002
  Prefactor  = 8.13095
  norm       = 1.68544
  Normalizat = 0.858246
  Prefactor  = 1.1215
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.523     FROM HESSE     STATUS=OK           268 CALLS     2168 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.866        20.646        .80333E-04   -1.4710    
   2  norm          .10000E-03    6.1565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.8480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.429        29.725        .59486E-04   -1.4359    
   7  Prefactor     9.2532        11.553        .13175E-03   -1.5099    
   8  norm          .46822        .18656        .22203E-04   -1.5571    
   9  norm          .10000E-03    4.5302        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0346        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          53.728        11.827        .54719E-04   -1.4241    
  12  norm          2.8088        3.1565        .15612E-03   -1.5373    
  13  Prefactor     .10000E-03    40.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    8.1477        .29368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1309        5.1154        .14062E-03   -1.5138    
  17  norm          1.6854        4.6717        .29370E-03   -1.5448    
  18  Normalizat    .85825        .27496        .40454E-03   -.97943    
  19  Prefactor     1.1215        .14223        .18835E-03   -.88782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71387e-09
Minuit parameter uncertainties:
  1  20.652
  2  5.78125e-05
  3  0.000237232
  4  9.62947e-05
  5  0.000111819
  6  29.7346
  7  11.5554
  8  0.186563
  9  3.01934e-05
  10  4.76951e-07
  11  11.8271
  12  3.15671
  13  0.000178635
  14  0.000645082
  15  0.000302418
  16  5.11564
  17  4.67266
  18  0.275405
  19  0.142277
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  3.019e-05  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.490e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  4.151e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.122e+00  1.423e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  8.582e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.273 3.447
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13900/likelihoodResults_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.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): 102
logL (Free Index) = 7266.52396927
delta logL = -0.00105408624677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7266.52291891
delta logL = -3.72951762984e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13909E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5396       1.0000          .0000       5.0000    
     3 'Normalizat'    .85860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1214       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7266.488     FROM MIGRAD    STATUS=FAILED       172 CALLS      337 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59028E-01    .22844        .16595E-02   -.11628    
   2  alpha         5.0000        4.3586        .50000    ** at limit **
   3  Normalizat    .83704        .27678        .40454E-03    .24000E-04
   4  Prefactor     1.1278        .14181        .18835E-03    .18254E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7266.488     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      457 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59028E-01    .22844        .17762E-06   -1.5757    
   2  alpha         5.0000        4.3586        .25147E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83704        .27678        .16864E-05   -.98709    
   4  Prefactor     1.1278        .14181        .25120E-06   -.88582    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7266.488     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      495 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59029E-01    .24325        .33190E-03   -.46334E-02
   2  alpha         5.0000        4.2080        .50000    ** at limit **
   3  Normalizat    .83704        .27650        .16181E-04    .39063E-04
   4  Prefactor     1.1278        .14178        .37670E-04    .81847E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0590289
  alpha      = 5
  Normalizat = 0.837042
  Prefactor  = 1.12782
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.488     FROM HESSE     STATUS=OK            31 CALLS      526 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59029E-01    .25541        .66379E-04   -1.5757    
   2  alpha         5.0000        4.0955        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83704        .27644        .32363E-05   -.98709    
   4  Prefactor     1.1278        .14177        .75340E-05   -.88582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34905e-11
Minuit parameter uncertainties:
  1  0.245369
  2  0.000272035
  3  0.276906
  4  0.141819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13900': 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) = 7266.48805576
delta logL = 0.034859423441

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  5.903e-02  2.454e-01  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  5.000e+00  2.720e-04  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  4.151e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.128e+00  1.418e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  8.370e-01  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.273 3.447

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/13900/cmap_HighResolution_401068801_401328001_4FGL_J1505.0+0326_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-10 22:18:30.093088', job_id='13900', GAL2='1.13', fit_tolerance='1e-08', EG2='0.84', EG='0.86', time_epoch_completed='1631337510.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.49e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='624' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:18:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 13900: <4FGL_J1505.0+0326_daily_bin624> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin624> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 10 22:06:04 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:06:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 22:06:06 2021
Terminated at Fri Sep 10 22:18:33 2021
Results reported at Fri Sep 10 22:18:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin624 226.273 3.4472 401068801 401328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1505.0+0326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   596.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            749 sec.

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

