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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin948
RA = 226.273, Dec = 3.4472
tmin = 485049601, tmax = 485308801
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='15828', job_status='RUN', time_executed='2021-09-10 22:14:12.510619', time_epoch_executed='1631337252.51' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15828/ft1_4FGL_J1505.0+0326_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15828/ft1_4FGL_J1505.0+0326_daily_bin948.fits outfile=/scratch/kocevski/15828/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin948.fits ra=226.273 dec=3.4472 rad=12.0 tmin=485049601.0 tmax=485308801.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.58
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.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/15828/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin948.fits evtable="EVENTS" outfile="/scratch/kocevski/15828/ft1_filtered_4FGL_J1505.0+0326_daily_bin948.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/15828/ft1_filtered_4FGL_J1505.0+0326_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/15828/ltcube_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.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/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits
.....................!
real 11.71
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15828/ft1_filtered_4FGL_J1505.0+0326_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/15828/ltcube_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.fits outfile=/scratch/kocevski/15828/expmap_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.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/15828/ltcube_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.fits
.....................!
real 192.46
user 187.67
sys 4.41

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/15828/ft1_filtered_4FGL_J1505.0+0326_daily_bin948.fits scfile=/scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits outfile=/scratch/kocevski/15828/cmap_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15828/ft1_filtered_4FGL_J1505.0+0326_daily_bin948.fits scfile=/scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits outfile=/scratch/kocevski/15828/cmap_HighResolution_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.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.58
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15828/ft1_filtered_4FGL_J1505.0+0326_daily_bin948.fits', '/scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits', expMap='/scratch/kocevski/15828/expmap_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.fits', expCube='/scratch/kocevski/15828/ltcube_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15828/Model_4FGL_J1505.0+0326_daily_bin948.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/15828/ft1_filtered_4FGL_J1505.0+0326_daily_bin948.fits
Spacecraft file(s): /scratch/kocevski/15828/ft2_4FGL_J1505.0+0326_daily_bin948.fits
Exposure map: /scratch/kocevski/15828/expmap_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.fits
Exposure cube: /scratch/kocevski/15828/ltcube_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15828/Model_4FGL_J1505.0+0326_daily_bin948.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) = 8724.10159279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3766       1.0000         .10000E-03   10000.    
     2 'norm      '    .13980E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.730       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48735E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73794       1.0000         .10000E-03   10000.    
     9 'norm      '    4.3323       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3408       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9065       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.592       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6462       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2224       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1006       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91353       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=   8724.099     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1946 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3458        33.251        .13076E-05    .26238E-04
   2  norm          .10000E-03    17.054        .10067E-05** at limit **
   3  Prefactor     .10000E-03    23.406        .28918E-06** at limit **
   4  Prefactor     .10000E-03    32.468        .53732E-05** at limit **
   5  norm          17.737        15.652       -.12302E-06    .72317E-04
   6  Prefactor     .15135E-03    27.879       -.35739E-05** at limit **
   7  Prefactor     .10000E-03    24.387       -.95725E-07** at limit **
   8  norm          .73818        .21969       -.20249E-07    .47018E-03
   9  norm          4.3339        2.7735        .19522E-06    .15854E-03
  10  norm          5.3481        5.4937       -.30766E-07    .13667E-05
  11  norm          .10000E-03    1.4791        .23309E-07** at limit **
  12  norm          3.9028        3.2142       -.38043E-07   -.27547E-04
  13  Prefactor     32.652        40.434       -.13904E-06   -.88593E-04
  14  Prefactor     .10000E-03    3.0094       -.42615E-06** at limit **
  15  Prefactor     11.699        25.547       -.10088E-05   -.72319E-05
  16  Prefactor     1.6466        3.1163        .87300E-06    .33490E-03
  17  norm          1.2185        2.8662        .13216E-05    .49010E-03
  18  Normalizat    1.1005        .21088       -.27296E-05    .23858E-04
  19  Prefactor     .91368        .98528E-01    .69201E-06   -.12287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.34585
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 17.7368
  Prefactor  = 0.000151351
  Prefactor  = 0.0001
  norm       = 0.73818
  norm       = 4.33388
  norm       = 5.34811
  norm       = 0.0001
  norm       = 3.90276
  Prefactor  = 32.6523
  Prefactor  = 0.0001
  Prefactor  = 11.6994
  Prefactor  = 1.64656
  norm       = 1.21851
  Normalizat = 1.10053
  Prefactor  = 0.913676
 **********
 **   18 **HESSE 
 **********

 FCN=   8724.099     FROM HESSE     STATUS=OK           280 CALLS     2226 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3458        33.338        .13088E-03   -1.5096    
   2  norm          .10000E-03    17.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.737        15.652        .95119E-04   -1.4865    
   6  Prefactor     .15135E-03    26.336        .11412       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73818        .22010        .22406E-04   -1.5536    
   9  norm          4.3339        2.7674        .11400E-03   -1.5292    
  10  norm          5.3481        5.4952        .17390E-03   -1.5245    
  11  norm          .10000E-03    5.4479        .21981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9028        3.2076        .14440E-03   -1.5313    
  13  Prefactor     32.652        40.484        .70188E-04   -1.4564    
  14  Prefactor     .10000E-03    3.1377        .31548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.699        25.431        .11719E-03   -1.5024    
  16  Prefactor     1.6466        3.1025        .21730E-03   -1.5451    
  17  norm          1.2185        2.8405        .23171E-03   -1.5487    
  18  Normalizat    1.1005        .24161        .33913E-03   -.89735    
  19  Prefactor     .91368        .11364        .18193E-03   -.95665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18715e-09
Minuit parameter uncertainties:
  1  33.4045
  2  9.75696e-05
  3  5.83604e-05
  4  0.000758915
  5  15.6552
  6  0.0735814
  7  2.73115e-05
  8  0.220105
  9  2.76751
  10  5.49567
  11  3.68573e-05
  12  3.20774
  13  40.518
  14  1.16425e-05
  15  25.4546
  16  3.10285
  17  2.84086
  18  0.241858
  19  0.11367
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.334e+00  2.768e+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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.137e-01  1.137e-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:  1.101e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.48
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 9.14e-08 +/- 5.83e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/15828/likelihoodResults_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8723.80224445
delta logL = 0.296518368234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8723.79889431
delta logL = 0.299868508997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6602       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9914       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92548       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.

 FCN=   8723.799     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6595        40.558        .52784E-02    .63035E-03
   2  alpha         2.9917        3.7749        .42204        .40970E-04
   3  Normalizat    1.0670        .82680E-01    .77640E-01    .32420E-04
   4  Prefactor     .92551        .45351E-01    .45329E-01   -.39720E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.65955
  alpha      = 2.99171
  Normalizat = 1.06697
  Prefactor  = 0.925506
 **********
 **   18 **HESSE 
 **********

 FCN=   8723.799     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6595        2.8905        .95952E-04   -1.5325    
   2  alpha         2.9917        .74878        .17892E-01    .19797    
   3  Normalizat    1.0670        .23105        .34365E-03   -.90819    
   4  Prefactor     .92551        .11234        .18089E-03   -.95255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3126e-12
Minuit parameter uncertainties:
  1  2.89065
  2  0.760948
  3  0.231273
  4  0.112372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15828': 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) = 8723.79889416
delta logL = 0.299868657814

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.660e+00  2.891e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.992e+00  7.609e-01  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:  9.255e-01  1.124e-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:  1.067e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.99 +/- 0.76
Photon Flux (Free Index): 1.17e-07 +/- 6.95e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.43e-05

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/15828/cmap_HighResolution_485049601_485308801_4FGL_J1505.0+0326_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-05', comment='SUCCESS', photon_flux='9.14e-08', energy_flux2='2.36e-05', photon_flux_error='5.83e-08', dlogl='3.00e-01', energy_flux='2.47e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-10 22:24:50.822099', photon_index_error2='0.76', photon_index2='2.99', ts='3.48', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.43e-05', EG='1.10', time_epoch_completed='1631337890.82', return_code='0', job_id='15828', GAL2='0.93', EG2='1.07', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.95e-08', ts2='4.16', photon_index='2.49' WHERE bin_id='948' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:24:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 15828: <4FGL_J1505.0+0326_daily_bin948> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin948> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 22:11:17 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:11:18 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:11:18 2021
Terminated at Fri Sep 10 22:24:53 2021
Results reported at Fri Sep 10 22:24:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin948 226.273 3.4472 485049601 485308801 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 :                                   630.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

