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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin752
RA = 226.273, Dec = 3.4472
tmin = 434246401, tmax = 434505601
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='14162', job_status='RUN', time_executed='2021-09-10 22:09:00.257049', time_epoch_executed='1631336940.26' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14162/ft1_4FGL_J1505.0+0326_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14162/ft2_4FGL_J1505.0+0326_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14162/ft1_4FGL_J1505.0+0326_daily_bin752.fits outfile=/scratch/kocevski/14162/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin752.fits ra=226.273 dec=3.4472 rad=12.0 tmin=434246401.0 tmax=434505601.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 4.54
user 4.23
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14162/ft2_4FGL_J1505.0+0326_daily_bin752.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/14162/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/14162/ft1_filtered_4FGL_J1505.0+0326_daily_bin752.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.42
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14162/ft1_filtered_4FGL_J1505.0+0326_daily_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/14162/ft2_4FGL_J1505.0+0326_daily_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/14162/ltcube_434246401_434505601_4FGL_J1505.0+0326_daily_bin752.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/14162/ft2_4FGL_J1505.0+0326_daily_bin752.fits
.....................!
real 8.91
user 8.60
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14162/ft1_filtered_4FGL_J1505.0+0326_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/14162/ft2_4FGL_J1505.0+0326_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/14162/ltcube_434246401_434505601_4FGL_J1505.0+0326_daily_bin752.fits outfile=/scratch/kocevski/14162/expmap_434246401_434505601_4FGL_J1505.0+0326_daily_bin752.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/14162/ltcube_434246401_434505601_4FGL_J1505.0+0326_daily_bin752.fits
.....................!
real 140.73
user 136.70
sys 3.70

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/14162/ft1_filtered_4FGL_J1505.0+0326_daily_bin752.fits scfile=/scratch/kocevski/14162/ft2_4FGL_J1505.0+0326_daily_bin752.fits outfile=/scratch/kocevski/14162/cmap_434246401_434505601_4FGL_J1505.0+0326_daily_bin752.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.46
user 0.27
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14162/ft1_filtered_4FGL_J1505.0+0326_daily_bin752.fits scfile=/scratch/kocevski/14162/ft2_4FGL_J1505.0+0326_daily_bin752.fits outfile=/scratch/kocevski/14162/cmap_HighResolution_434246401_434505601_4FGL_J1505.0+0326_daily_bin752.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15549E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34225E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4537       1.0000         .10000E-03   10000.    
     8 'norm      '    .13560E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4299       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1737       1.0000         .10000E-03   10000.    
    11 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1455       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3127       1.0000         .10000E-03   10000.    
    17 'norm      '    .15030       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0204       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0287       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=   19760.70     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1959 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    56.076       -.12330E-04** at limit **
   2  norm          12.386        16.086        .63511E-05    .32677E-03
   3  Prefactor     .10000E-03    24.450       -.44121E-05** at limit **
   4  Prefactor     .10000E-03    13.885        .58780E-07** at limit **
   5  norm          16.170        9.7727       -.16802E-06    .34054E-06
   6  Prefactor     .10000E-03    2.9887       -.52439E-08** at limit **
   7  Prefactor     2.4562        2.4894        .76770E-06   -.27767E-02
   8  norm          .13571E-01    .38953E-01   -.42165E-08   -.20422E-02
   9  norm          2.4299        1.1596        .41684E-07   -.16131E-03
  10  norm          4.1629        2.9366        .10972E-07    .74006E-04
  11  norm          .10000E-03    .76098       -.42879E-07** at limit **
  12  norm          2.1465        1.8908        .58935E-07   -.26034E-03
  13  Prefactor     3.8343        18.759       -.30677E-05   -.45904E-04
  14  Prefactor     9.7318        2.6177        .86956E-07   -.25949E-02
  15  Prefactor     24.251        12.243        .11211E-05    .17519E-03
  16  Prefactor     6.2975        2.4749       -.24621E-07   -.68834E-04
  17  norm          .14878        .66538       -.14389E-06   -.22511E-04
  18  Normalizat    1.0204        .12765       -.48440E-06    .23948E-03
  19  Prefactor     1.0287        .66367E-01    .34035E-07    .26158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 12.3864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1702
  Prefactor  = 0.0001
  Prefactor  = 2.45625
  norm       = 0.0135713
  norm       = 2.42988
  norm       = 4.16291
  norm       = 0.0001
  norm       = 2.14647
  Prefactor  = 3.83431
  Prefactor  = 9.73181
  Prefactor  = 24.2512
  Prefactor  = 6.29751
  norm       = 0.148781
  Normalizat = 1.02038
  Prefactor  = 1.02868
 **********
 **   18 **HESSE 
 **********

 FCN=   19760.70     FROM HESSE     STATUS=OK           276 CALLS     2235 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    59.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.386        16.306        .11326E-03   -1.5004    
   3  Prefactor     .10000E-03    24.552        .21333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.170        9.7537        .99788E-04   -1.4904    
   6  Prefactor     .10000E-03    2.9973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4562        4.2784        .13056E-02   -1.5395    
   8  norm          .13571E-01    .75054E-01    .45067E-03   -1.5685    
   9  norm          2.4299        1.1557        .99275E-04   -1.5396    
  10  norm          4.1629        2.9379        .19716E-03   -1.5300    
  11  norm          .10000E-03    .77656        .11972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1465        1.8817        .17462E-03   -1.5415    
  13  Prefactor     3.8343        18.787        .20616E-03   -1.5316    
  14  Prefactor     9.7318        2.7049        .58143E-03   -1.5084    
  15  Prefactor     24.251        12.229        .81326E-04   -1.4723    
  16  Prefactor     6.2975        2.4645        .13172E-03   -1.5206    
  17  norm          .14878        4.1549        .21955E-02   -1.5631    
  18  Normalizat    1.0204        .14689        .33525E-03   -.92351    
  19  Prefactor     1.0287        .77143E-01    .17647E-03   -.91779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74702e-07
Minuit parameter uncertainties:
  1  0.00123512
  2  16.3114
  3  0.000164385
  4  1.38313e-05
  5  9.75463
  6  1.00606e-06
  7  4.27895
  8  0.063595
  9  1.15572
  10  2.93797
  11  1.50342e-07
  12  1.88178
  13  16.9832
  14  2.70496
  15  12.2299
  16  2.46457
  17  1.57207
  18  0.146949
  19  0.0771512
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  2.430e+00  1.156e+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.029e+00  7.715e-02  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.020e+00  1.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 6.58e-06

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) = 19760.0899485
delta logL = 0.608537692671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19760.0450244
delta logL = 0.65346184211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8989       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8629       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0213       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=   19760.05     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8969        1.0372        .75461E-03    .23268E-03
   2  alpha         1.8626        .33287        .42982       -.11369E-03
   3  Normalizat    1.0488        .12427        .74865E-01    .45119E-04
   4  Prefactor     1.0214        .65683E-01    .42010E-01    .50343E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89692
  alpha      = 1.86264
  Normalizat = 1.04875
  Prefactor  = 1.02135
 **********
 **   18 **HESSE 
 **********

 FCN=   19760.05     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8969        1.4976        .30184E-04   -1.5433    
   2  alpha         1.8626        .58313        .18884E-01   -.25779    
   3  Normalizat    1.0488        .14575        .33131E-03   -.91415    
   4  Prefactor     1.0214        .76451E-01    .17705E-03   -.92021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01109e-11
Minuit parameter uncertainties:
  1  1.49762
  2  0.58894
  3  0.145805
  4  0.0764591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14162': 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) = 19760.0450229
delta logL = 0.653463353243

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.897e+00  1.498e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  1.863e+00  5.889e-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:  1.021e+00  7.646e-02  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.049e+00  1.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.09
Ra Dec: 226.273 3.447
Photon Index (Free Index): 1.86 +/- 0.59
Photon Flux (Free Index): 2.79e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.56e-05 +/- 9.05e-06

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/14162/cmap_HighResolution_434246401_434505601_4FGL_J1505.0+0326_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.56e-05', photon_flux_error='2.44e-08', dlogl='6.53e-01', energy_flux='1.38e-05', photon_flux2='2.79e-08', job_status='DONE', time_completed='2021-09-10 22:20:52.634089', photon_index_error2='0.59', photon_index2='1.86', ts='8.82', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='9.05e-06', EG='1.02', time_epoch_completed='1631337652.63', return_code='0', job_id='14162', GAL2='1.02', EG2='1.05', return_code2='0', energy_flux_error='6.58e-06', photon_flux_error2='2.67e-08', ts2='10.09', photon_index='2.49' WHERE bin_id='752' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:20:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 14162: <4FGL_J1505.0+0326_daily_bin752> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin752> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 10 22:06:20 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:06:21 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:21 2021
Terminated at Fri Sep 10 22:20:53 2021
Results reported at Fri Sep 10 22:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin752 226.273 3.4472 434246401 434505601 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 :                                   711.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

