/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 168 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1505.0+0326_daily_bin214
RA = 226.273, Dec = 3.4472
tmin = 294796801, tmax = 295056001
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='10716', job_status='RUN', time_executed='2021-09-10 21:59:03.405214', time_epoch_executed='1631336343.41' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10716/ft1_4FGL_J1505.0+0326_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10716/ft2_4FGL_J1505.0+0326_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10716/ft1_4FGL_J1505.0+0326_daily_bin214.fits outfile=/scratch/kocevski/10716/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin214.fits ra=226.273 dec=3.4472 rad=12.0 tmin=294796801.0 tmax=295056001.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 2.34
user 2.14
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10716/ft2_4FGL_J1505.0+0326_daily_bin214.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/10716/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin214.fits evtable="EVENTS" outfile="/scratch/kocevski/10716/ft1_filtered_4FGL_J1505.0+0326_daily_bin214.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10716/ft1_filtered_4FGL_J1505.0+0326_daily_bin214.fits" evtable="EVENTS" scfile=/scratch/kocevski/10716/ft2_4FGL_J1505.0+0326_daily_bin214.fits sctable="SC_DATA" outfile=/scratch/kocevski/10716/ltcube_294796801_295056001_4FGL_J1505.0+0326_daily_bin214.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/10716/ft2_4FGL_J1505.0+0326_daily_bin214.fits
.....................!
real 11.76
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10716/ft1_filtered_4FGL_J1505.0+0326_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/10716/ft2_4FGL_J1505.0+0326_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/10716/ltcube_294796801_295056001_4FGL_J1505.0+0326_daily_bin214.fits outfile=/scratch/kocevski/10716/expmap_294796801_295056001_4FGL_J1505.0+0326_daily_bin214.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/10716/ltcube_294796801_295056001_4FGL_J1505.0+0326_daily_bin214.fits
.....................!
real 191.39
user 187.15
sys 3.89

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/10716/ft1_filtered_4FGL_J1505.0+0326_daily_bin214.fits scfile=/scratch/kocevski/10716/ft2_4FGL_J1505.0+0326_daily_bin214.fits outfile=/scratch/kocevski/10716/cmap_294796801_295056001_4FGL_J1505.0+0326_daily_bin214.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10716/ft1_filtered_4FGL_J1505.0+0326_daily_bin214.fits scfile=/scratch/kocevski/10716/ft2_4FGL_J1505.0+0326_daily_bin214.fits outfile=/scratch/kocevski/10716/cmap_HighResolution_294796801_295056001_4FGL_J1505.0+0326_daily_bin214.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.791       1.0000         .10000E-03   10000.    
     2 'norm      '    .10478E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26916E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12626       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0763       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1422       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0902       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4131       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2754       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .64817       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2730       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=   7238.052     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1864 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.789        30.905       -.10216E-05    .63472E-04
   2  norm          .10000E-03    23.960       -.15237E-04** at limit **
   3  Prefactor     .10000E-03    21.742        .10500E-04** at limit **
   4  Prefactor     .10001E-03    66.432        .73165E-05** at limit **
   5  norm          13.045        17.901       -.57104E-05   -.12094E-03
   6  Prefactor     39.129        25.594        .23545E-05    .17456E-04
   7  Prefactor     .10000E-03    4.7568        .13144E-06** at limit **
   8  norm          .12632        .15587       -.12654E-06   -.45591E-02
   9  norm          4.0765        2.5439        .35214E-07   -.24474E-03
  10  norm          .10000E-03    3.9430        .15698E-06** at limit **
  11  norm          3.1415        4.3078        .45589E-06   -.49549E-03
  12  norm          6.0900        4.0817       -.68382E-06   -.61848E-04
  13  Prefactor     .10000E-03    12.667        .95975E-07** at limit **
  14  Prefactor     3.4128        4.5439       -.17057E-05   -.63059E-03
  15  Prefactor     .10000E-03    35.001        .97962E-05** at limit **
  16  Prefactor     8.2752        5.0201        .17911E-05   -.17754E-03
  17  norm          .10000E-03    1.5956       -.15038E-06** at limit **
  18  Normalizat    .64799        .25699        .10242E-06   -.22208E-04
  19  Prefactor     1.2731        .12910        .37086E-06   -.17232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.789
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 13.0449
  Prefactor  = 39.1286
  Prefactor  = 0.0001
  norm       = 0.126318
  norm       = 4.07647
  norm       = 0.0001
  norm       = 3.14155
  norm       = 6.09002
  Prefactor  = 0.0001
  Prefactor  = 3.41283
  Prefactor  = 0.0001
  Prefactor  = 8.27519
  norm       = 0.0001
  Normalizat = 0.647987
  Prefactor  = 1.27307
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.052     FROM HESSE     STATUS=OK           272 CALLS     2136 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.789        30.915        .73405E-04   -1.4616    
   2  norm          .10000E-03    23.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    67.760        .21435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.045        17.947        .11052E-03   -1.4985    
   6  Prefactor     39.129        25.579        .64077E-04   -1.4456    
   7  Prefactor     .10000E-03    4.7597        .18122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .12632        .14398        .35143E-03   -1.5637    
   9  norm          4.0765        2.5368        .10080E-03   -1.5304    
  10  norm          .10000E-03    3.9594        .16498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1415        4.2912        .19889E-03   -1.5353    
  12  norm          6.0900        4.0789        .13560E-03   -1.5214    
  13  Prefactor     .10000E-03    12.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4128        4.5855        .19962E-03   -1.5338    
  15  Prefactor     .10000E-03    34.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2752        4.9880        .13936E-03   -1.5133    
  17  norm          .10000E-03    1.6017        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .64799        .27459        .44438E-03   -1.0598    
  19  Prefactor     1.2731        .14052        .17349E-03   -.84111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08207e-10
Minuit parameter uncertainties:
  1  30.932
  2  7.86421e-05
  3  2.55308e-06
  4  0.00167453
  5  17.9548
  6  25.5858
  7  1.39871e-06
  8  0.14398
  9  2.53689
  10  3.12933e-07
  11  4.29165
  12  4.07906
  13  2.49709e-06
  14  4.58594
  15  8.26867e-05
  16  4.98827
  17  3.62525e-06
  18  0.275168
  19  0.140558
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.076e+00  2.537e+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.273e+00  1.406e-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:  6.480e-01  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 8.59e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.44e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7237.8012616
delta logL = 0.251091849964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7237.79196945
delta logL = 0.260384003015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6442       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9566       1.0000          .0000       5.0000    
     3 'Normalizat'    .61408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2841       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=   7237.792     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6445        42.512        .52904E-02    .48317E-03
   2  alpha         2.9556        3.5888        .42054        .45527E-04
   3  Normalizat    .61394        .10525        .10280        .50147E-04
   4  Prefactor     1.2841        .56328E-01    .32893E-01   -.82195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64454
  alpha      = 2.95558
  Normalizat = 0.613938
  Prefactor  = 1.28406
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.792     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6445        2.4905        .86401E-04   -1.5326    
   2  alpha         2.9556        .68883        .16966E-01    .18325    
   3  Normalizat    .61394        .26482        .45569E-03   -1.0740    
   4  Prefactor     1.2841        .13880        .17281E-03   -.83782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39497e-11
Minuit parameter uncertainties:
  1  2.49052
  2  0.698177
  3  0.265369
  4  0.138838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10716': 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) = 7237.79196653
delta logL = 0.260386921394

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.645e+00  2.491e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.956e+00  6.982e-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.284e+00  1.388e-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:  6.139e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.96 +/- 0.70
Photon Flux (Free Index): 1.13e-07 +/- 6.88e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.31e-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/10716/cmap_HighResolution_294796801_295056001_4FGL_J1505.0+0326_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.59e-08', energy_flux2='2.31e-05', photon_flux_error='5.35e-08', dlogl='2.60e-01', energy_flux='2.32e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-10 22:07:42.409620', photon_index_error2='0.70', photon_index2='2.96', ts='4.76', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.65', time_epoch_completed='1631336862.41', return_code='0', job_id='10716', GAL2='1.28', EG2='0.61', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.88e-08', ts2='5.36', photon_index='2.49' WHERE bin_id='214' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:07:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 10716: <4FGL_J1505.0+0326_daily_bin214> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin214> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:56:05 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:56:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:56:07 2021
Terminated at Fri Sep 10 22:07:43 2021
Results reported at Fri Sep 10 22:07:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin214 226.273 3.4472 294796801 295056001 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 :                                   517.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            698 sec.

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

