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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin623
RA = 226.273, Dec = 3.4472
tmin = 400809601, tmax = 401068801
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='13899', job_status='RUN', time_executed='2021-09-10 22:09:34.968067', time_epoch_executed='1631336974.97' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13899

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13899/ft1_4FGL_J1505.0+0326_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13899/ft2_4FGL_J1505.0+0326_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13899/ft1_4FGL_J1505.0+0326_daily_bin623.fits outfile=/scratch/kocevski/13899/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin623.fits ra=226.273 dec=3.4472 rad=12.0 tmin=400809601.0 tmax=401068801.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.47
user 3.27
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13899/ft1_filtered_4FGL_J1505.0+0326_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/13899/ft2_4FGL_J1505.0+0326_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/13899/ltcube_400809601_401068801_4FGL_J1505.0+0326_daily_bin623.fits outfile=/scratch/kocevski/13899/expmap_400809601_401068801_4FGL_J1505.0+0326_daily_bin623.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/13899/ltcube_400809601_401068801_4FGL_J1505.0+0326_daily_bin623.fits
.....................!
real 191.00
user 185.84
sys 4.81

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/13899/ft1_filtered_4FGL_J1505.0+0326_daily_bin623.fits scfile=/scratch/kocevski/13899/ft2_4FGL_J1505.0+0326_daily_bin623.fits outfile=/scratch/kocevski/13899/cmap_400809601_401068801_4FGL_J1505.0+0326_daily_bin623.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13899/ft1_filtered_4FGL_J1505.0+0326_daily_bin623.fits scfile=/scratch/kocevski/13899/ft2_4FGL_J1505.0+0326_daily_bin623.fits outfile=/scratch/kocevski/13899/cmap_HighResolution_400809601_401068801_4FGL_J1505.0+0326_daily_bin623.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.430       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5651       1.0000         .10000E-03   10000.    
     8 'norm      '    .31613       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9254       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12383E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6676       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6837       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5736       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94382       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=   6997.832     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1903 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3020       -.98133E-06** at limit **
   2  norm          .10000E-03    8.5479        .11933E-05** at limit **
   3  Prefactor     .10000E-03    56.348       -.43384E-06** at limit **
   4  Prefactor     65.333        55.361        .10861E-04   -.83741E-06
   5  norm          3.8759        43.888       -.18786E-04   -.13934E-03
   6  Prefactor     22.033        19.330       -.18464E-06    .60732E-04
   7  Prefactor     6.5704        19.110        .18955E-06   -.13958E-06
   8  norm          .31616        .16600        .64510E-08    .19693E-04
   9  norm          1.9257        1.9199        .47091E-07   -.21701E-04
  10  norm          .10000E-03    2.2554       -.19404E-10** at limit **
  11  norm          .10000E-03    3.7131        .13154E-05** at limit **
  12  norm          1.6675        2.0218        .18359E-07   -.47488E-05
  13  Prefactor     .10000E-03    31.182       -.48081E-06** at limit **
  14  Prefactor     .10000E-03    1.8447        .89590E-07** at limit **
  15  Prefactor     .10000E-03    17.987        .33453E-06** at limit **
  16  Prefactor     1.6845        3.7133        .40859E-05   -.53629E-03
  17  norm          4.5733        4.5863       -.66871E-07   -.68208E-04
  18  Normalizat    1.2802        .22263        .78153E-06    .42022E-04
  19  Prefactor     .94408        .11063       -.91185E-06   -.15716E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.3333
  norm       = 3.87594
  Prefactor  = 22.0332
  Prefactor  = 6.5704
  norm       = 0.316159
  norm       = 1.92566
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 1.66753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68454
  norm       = 4.57335
  Normalizat = 1.28018
  Prefactor  = 0.944078
 **********
 **   18 **HESSE 
 **********

 FCN=   6997.832     FROM HESSE     STATUS=OK           272 CALLS     2175 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.5199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     65.333        55.710        .24807E-03   -1.4090    
   5  norm          3.8759        44.566        .20337E-03   -1.5314    
   6  Prefactor     22.033        19.347        .85333E-04   -1.4769    
   7  Prefactor     6.5704        19.152        .15662E-03   -1.5195    
   8  norm          .31616        .16490        .23606E-04   -1.5596    
   9  norm          1.9257        1.9043        .11090E-03   -1.5430    
  10  norm          .10000E-03    2.2577        .12269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.187        .30661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6675        2.0138        .12745E-03   -1.5450    
  13  Prefactor     .10000E-03    31.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8706        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6845        3.7582        .11659E-02   -1.5448    
  17  norm          4.5733        4.5810        .17258E-03   -1.5280    
  18  Normalizat    1.2802        .25722        .32419E-03   -.84160    
  19  Prefactor     .94408        .12731        .18926E-03   -.94617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48023e-10
Minuit parameter uncertainties:
  1  3.65069e-05
  2  6.71657e-05
  3  0.000104389
  4  55.7547
  5  26.31
  6  19.3528
  7  19.17
  8  0.164896
  9  1.90434
  10  1.30966e-07
  11  0.000325129
  12  2.01392
  13  5.39458e-05
  14  3.07334e-07
  15  3.95877e-05
  16  3.75872
  17  4.58135
  18  0.25748
  19  0.127347
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.926e+00  1.904e+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.441e-01  1.273e-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.280e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.06e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/13899/likelihoodResults_400809601_401068801_4FGL_J1505.0+0326_daily_bin623.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) = 6997.77812416
delta logL = 0.0543358125788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6997.77531316
delta logL = 0.0571468100025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0548       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2109       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94128       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=   6997.775     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0546        4.2321        .72085E-02    .49428E-03
   2  alpha         2.2110        1.3597        .41505       -.16298E-04
   3  Normalizat    1.2871        .21434        .73086E-01    .22458E-04
   4  Prefactor     .94137        .11069        .45529E-01    .49343E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05456
  alpha      = 2.21095
  Normalizat = 1.28714
  Prefactor  = 0.941374
 **********
 **   18 **HESSE 
 **********

 FCN=   6997.775     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0546        1.9883        .11258E-03   -1.5421    
   2  alpha         2.2110        .76914        .22220E-01   -.11588    
   3  Normalizat    1.2871        .24672        .32342E-03   -.83951    
   4  Prefactor     .94137        .12632        .18948E-03   -.94710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30876e-10
Minuit parameter uncertainties:
  1  1.98841
  2  0.782
  3  0.246941
  4  0.126359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13899': 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) = 6997.77531286
delta logL = 0.0571471108387

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  2.055e+00  1.988e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.211e+00  7.820e-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.414e-01  1.264e-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.287e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.21 +/- 0.78
Photon Flux (Free Index): 3.59e-08 +/- 3.80e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.32e-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/13899/cmap_HighResolution_400809601_401068801_4FGL_J1505.0+0326_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-05', comment='SUCCESS', photon_flux='4.06e-08', energy_flux2='1.25e-05', photon_flux_error='4.01e-08', dlogl='5.71e-02', energy_flux='1.10e-05', photon_flux2='3.59e-08', job_status='DONE', time_completed='2021-09-10 22:19:06.373501', photon_index_error2='0.78', photon_index2='2.21', ts='1.52', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.32e-05', EG='1.28', time_epoch_completed='1631337546.37', return_code='0', job_id='13899', GAL2='0.94', EG2='1.29', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.80e-08', ts2='1.63', photon_index='2.49' WHERE bin_id='623' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 13899: <4FGL_J1505.0+0326_daily_bin623> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin623 226.273 3.4472 400809601 401068801 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 :                                   570.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             239.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

