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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin483
RA = 226.273, Dec = 3.4472
tmin = 364521601, tmax = 364780801
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='12308', job_status='RUN', time_executed='2021-09-10 22:03:40.652630', time_epoch_executed='1631336620.65' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12308/ft1_4FGL_J1505.0+0326_daily_bin483.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12308/ft2_4FGL_J1505.0+0326_daily_bin483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12308/ft1_4FGL_J1505.0+0326_daily_bin483.fits outfile=/scratch/kocevski/12308/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin483.fits ra=226.273 dec=3.4472 rad=12.0 tmin=364521601.0 tmax=364780801.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.25
user 3.04
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12308/ft2_4FGL_J1505.0+0326_daily_bin483.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/12308/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin483.fits evtable="EVENTS" outfile="/scratch/kocevski/12308/ft1_filtered_4FGL_J1505.0+0326_daily_bin483.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/12308/ft1_filtered_4FGL_J1505.0+0326_daily_bin483.fits" evtable="EVENTS" scfile=/scratch/kocevski/12308/ft2_4FGL_J1505.0+0326_daily_bin483.fits sctable="SC_DATA" outfile=/scratch/kocevski/12308/ltcube_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.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/12308/ft2_4FGL_J1505.0+0326_daily_bin483.fits
.....................!
real 12.22
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12308/ft1_filtered_4FGL_J1505.0+0326_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/12308/ft2_4FGL_J1505.0+0326_daily_bin483.fits sctable="SC_DATA" expcube=/scratch/kocevski/12308/ltcube_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.fits outfile=/scratch/kocevski/12308/expmap_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.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/12308/ltcube_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.fits
.....................!
real 193.08
user 188.00
sys 4.59

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/12308/ft1_filtered_4FGL_J1505.0+0326_daily_bin483.fits scfile=/scratch/kocevski/12308/ft2_4FGL_J1505.0+0326_daily_bin483.fits outfile=/scratch/kocevski/12308/cmap_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12308/ft1_filtered_4FGL_J1505.0+0326_daily_bin483.fits scfile=/scratch/kocevski/12308/ft2_4FGL_J1505.0+0326_daily_bin483.fits outfile=/scratch/kocevski/12308/cmap_HighResolution_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.986       1.0000         .10000E-03   10000.    
     2 'norm      '    .11023E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.759       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9102       1.0000         .10000E-03   10000.    
     8 'norm      '    .13883       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3573       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5039       1.0000         .10000E-03   10000.    
    11 'norm      '    .17453E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1393       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3419       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6288       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2260       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95901       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1301       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=   7353.036     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1950 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.983        23.270        .40906E-06    .34585E-04
   2  norm          .10010E-03    16.231       -.57793E-06** at limit **
   3  Prefactor     71.882        61.495       -.45130E-05   -.29155E-03
   4  Prefactor     .10000E-03    12.261       -.38328E-05** at limit **
   5  norm          .10001E-03    12.181        .50977E-05** at limit **
   6  Prefactor     67.752        29.751       -.43106E-06   -.11566E-03
   7  Prefactor     6.9087        17.799        .38041E-06    .76187E-07
   8  norm          .13896        .16056        .28117E-07   -.50991E-03
   9  norm          3.3576        2.4609        .13979E-05   -.29337E-02
  10  norm          3.5038        4.0984       -.79123E-07   -.23007E-05
  11  norm          .10000E-03    2.9134        .42164E-07** at limit **
  12  norm          2.1388        4.1632       -.35904E-06   -.31514E-03
  13  Prefactor     .10000E-03    58.856        .11470E-05** at limit **
  14  Prefactor     8.3419        4.7601       -.51204E-07   -.95829E-04
  15  Prefactor     .10000E-03    14.866       -.12490E-05** at limit **
  16  Prefactor     1.6291        3.9841        .57119E-06   -.26601E-03
  17  norm          3.2260        3.4656       -.12249E-07   -.37632E-04
  18  Normalizat    .95910        .24763       -.42551E-06   -.31823E-04
  19  Prefactor     1.1301        .12199       -.17490E-06   -.32967E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9835
  norm       = 0.000100104
  Prefactor  = 71.882
  Prefactor  = 0.000100005
  norm       = 0.000100008
  Prefactor  = 67.7522
  Prefactor  = 6.90873
  norm       = 0.138962
  norm       = 3.35758
  norm       = 3.50378
  norm       = 0.0001
  norm       = 2.13876
  Prefactor  = 0.0001
  Prefactor  = 8.34189
  Prefactor  = 0.0001
  Prefactor  = 1.62909
  norm       = 3.22597
  Normalizat = 0.959101
  Prefactor  = 1.13006
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.036     FROM HESSE     STATUS=OK           278 CALLS     2228 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.983        23.229        .10017E-03   -1.4908    
   2  norm          .10010E-03    139.57        .66829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.882        63.428        .47345E-04   -1.4010    
   4  Prefactor     .10000E-03    12.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    13.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     67.752        29.797        .48760E-04   -1.4060    
   7  Prefactor     6.9087        17.811        .15262E-03   -1.5182    
   8  norm          .13896        .14730        .34629E-03   -1.5633    
   9  norm          3.3576        2.7728        .59833E-03   -1.5341    
  10  norm          3.5038        4.0969        .18315E-03   -1.5334    
  11  norm          .10000E-03    7.7025        .28366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1388        4.1386        .23027E-03   -1.5415    
  13  Prefactor     .10000E-03    59.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3419        4.7554        .13526E-03   -1.5130    
  15  Prefactor     .10000E-03    14.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6291        3.9823        .25703E-03   -1.5453    
  17  norm          3.2260        3.4590        .16027E-03   -1.5349    
  18  Normalizat    .95910        .28289        .38430E-03   -.94413    
  19  Prefactor     1.1301        .13924        .18404E-03   -.88512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99966e-09
Minuit parameter uncertainties:
  1  23.2425
  2  0.00762463
  3  63.488
  4  0.000483743
  5  0.00064914
  6  29.8033
  7  17.8244
  8  0.147304
  9  2.77293
  10  4.09725
  11  1.23959e-06
  12  4.13911
  13  0.000280976
  14  4.75557
  15  0.000172887
  16  3.98298
  17  3.45925
  18  0.283333
  19  0.139281
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.358e+00  2.773e+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:  1.130e+00  1.393e-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:  9.591e-01  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 5.84e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/12308/likelihoodResults_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.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) = 7351.91063675
delta logL = 1.1251431643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7351.83861091
delta logL = 1.19716900005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56764       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .83305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1792       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=   7351.839     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      317 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56716        7.4471        .75231E-02    .11590E-02
   2  alpha         5.0000        3.2931        .46269    ** at limit **
   3  Normalizat    .83325        .12995        .92334E-01    .69912E-04
   4  Prefactor     1.1792        .66433E-01    .35143E-01    .81167E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.567159
  alpha      = 5
  Normalizat = 0.83325
  Prefactor  = 1.17922
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.839     FROM HESSE     STATUS=OK            33 CALLS      350 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56716        .44383        .33958E-04   -1.5557    
   2  alpha         5.0000        3.2882        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83325        .27771        .40902E-03   -.98847    
   4  Prefactor     1.1792        .13994        .18065E-03   -.86973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83588e-12
Minuit parameter uncertainties:
  1  0.443837
  2  6.37707e-06
  3  0.278181
  4  0.139982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12308': 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) = 7351.83860489
delta logL = 1.1971750281

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  5.672e-01  4.438e-01  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  5.000e+00  6.377e-06  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.179e+00  1.400e-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.332e-01  2.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 226.273 3.447
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.53e-07 +/- 1.19e-07
Energy Flux (Free Index): 2.06e-05 +/- 1.61e-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/12308/cmap_HighResolution_364521601_364780801_4FGL_J1505.0+0326_daily_bin483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='2.06e-05', photon_flux_error='5.84e-08', dlogl='1.20e+00', energy_flux='1.91e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-10 22:13:33.292456', photon_index_error2='0.00', photon_index2='5.00', ts='2.34', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.61e-05', EG='0.96', time_epoch_completed='1631337213.29', return_code='0', job_id='12308', GAL2='1.18', EG2='0.83', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='1.19e-07', ts2='5.13', photon_index='2.49' WHERE bin_id='483' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:13:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 12308: <4FGL_J1505.0+0326_daily_bin483> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin483> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 10 22:01:25 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:01:26 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:01:26 2021
Terminated at Fri Sep 10 22:13:34 2021
Results reported at Fri Sep 10 22:13:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin483 226.273 3.4472 364521601 364780801 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 :                                   591.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

