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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin278
RA = 226.273, Dec = 3.4472
tmin = 311385601, tmax = 311644801
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='10809', job_status='RUN', time_executed='2021-09-10 22:00:15.701995', time_epoch_executed='1631336415.7' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10809/ft1_4FGL_J1505.0+0326_daily_bin278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10809/ft2_4FGL_J1505.0+0326_daily_bin278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10809/ft1_4FGL_J1505.0+0326_daily_bin278.fits outfile=/scratch/kocevski/10809/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin278.fits ra=226.273 dec=3.4472 rad=12.0 tmin=311385601.0 tmax=311644801.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.49
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10809/ft1_filtered_4FGL_J1505.0+0326_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/10809/ft2_4FGL_J1505.0+0326_daily_bin278.fits sctable="SC_DATA" expcube=/scratch/kocevski/10809/ltcube_311385601_311644801_4FGL_J1505.0+0326_daily_bin278.fits outfile=/scratch/kocevski/10809/expmap_311385601_311644801_4FGL_J1505.0+0326_daily_bin278.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/10809/ltcube_311385601_311644801_4FGL_J1505.0+0326_daily_bin278.fits
.....................!
real 190.99
user 185.46
sys 5.18

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/10809/ft1_filtered_4FGL_J1505.0+0326_daily_bin278.fits scfile=/scratch/kocevski/10809/ft2_4FGL_J1505.0+0326_daily_bin278.fits outfile=/scratch/kocevski/10809/cmap_311385601_311644801_4FGL_J1505.0+0326_daily_bin278.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10809/ft1_filtered_4FGL_J1505.0+0326_daily_bin278.fits scfile=/scratch/kocevski/10809/ft2_4FGL_J1505.0+0326_daily_bin278.fits outfile=/scratch/kocevski/10809/cmap_HighResolution_311385601_311644801_4FGL_J1505.0+0326_daily_bin278.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.888       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.747       1.0000         .10000E-03   10000.    
     5 'norm      '    .12449E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.661       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .82126       1.0000         .10000E-03   10000.    
     9 'norm      '    .99632       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7918       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8198       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3674       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8484       1.0000         .10000E-03   10000.    
    17 'norm      '    .12449       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0838       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1770       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=   9983.046     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1869 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.894        23.568        .52649E-05   -.16662E-04
   2  norm          .10000E-03    6.4911        .17745E-06** at limit **
   3  Prefactor     .10000E-03    11.872        .35085E-05** at limit **
   4  Prefactor     40.761        30.226        .13363E-04    .68825E-05
   5  norm          .10000E-03    8.1135       -.10603E-05** at limit **
   6  Prefactor     30.664        22.110        .90754E-06   -.17424E-04
   7  Prefactor     .10000E-03    12.205        .14932E-05** at limit **
   8  norm          .82133        .22683       -.48509E-07   -.87333E-03
   9  norm          .99658        1.9425       -.41385E-06   -.16049E-02
  10  norm          .10000E-03    3.0520        .77912E-06** at limit **
  11  norm          2.7908        3.6587       -.22756E-06   -.72115E-03
  12  norm          4.8195        3.6992       -.11310E-06   -.18237E-03
  13  Prefactor     .10000E-03    24.963        .70724E-05** at limit **
  14  Prefactor     7.3670        4.6790        .11661E-06   -.12365E-03
  15  Prefactor     .10000E-03    15.137       -.44853E-05** at limit **
  16  Prefactor     3.8492        4.1091        .21292E-07   -.27946E-03
  17  norm          .10448        3.2367       -.15528E-05    .81295E-03
  18  Normalizat    1.0833        .22268       -.31867E-05    .15179E-03
  19  Prefactor     1.1773        .10788        .24245E-06    .94440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8935
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7609
  norm       = 0.000100001
  Prefactor  = 30.6641
  Prefactor  = 0.0001
  norm       = 0.821326
  norm       = 0.996577
  norm       = 0.0001
  norm       = 2.79082
  norm       = 4.81948
  Prefactor  = 0.0001
  Prefactor  = 7.36705
  Prefactor  = 0.0001
  Prefactor  = 3.84918
  norm       = 0.104484
  Normalizat = 1.08331
  Prefactor  = 1.17734
 **********
 **   18 **HESSE 
 **********

 FCN=   9983.046     FROM HESSE     STATUS=OK           276 CALLS     2145 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.894        23.518        .94698E-04   -1.4862    
   2  norm          .10000E-03    6.4931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.761        30.024        .62796E-04   -1.4430    
   5  norm          .10000E-03    8.1589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.664        22.135        .72358E-04   -1.4600    
   7  Prefactor     .10000E-03    12.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .82133        .22655        .23766E-04   -1.5527    
   9  norm          .99658        1.9057        .18337E-03   -1.5508    
  10  norm          .10000E-03    3.0623        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7908        3.6591        .21098E-03   -1.5374    
  12  norm          4.8195        3.6866        .16162E-03   -1.5269    
  13  Prefactor     .10000E-03    25.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3670        4.6741        .14777E-03   -1.5165    
  15  Prefactor     .10000E-03    15.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8492        4.0994        .19922E-03   -1.5316    
  17  norm          .10448        3.4617        .54300E-01   -1.5643    
  18  Normalizat    1.0833        .24878        .39164E-03   -.90290    
  19  Prefactor     1.1773        .12221        .19038E-03   -.87032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39307e-09
Minuit parameter uncertainties:
  1  23.5303
  2  1.33032e-05
  3  7.34813e-06
  4  30.0356
  5  0.000200188
  6  22.1405
  7  1.31752e-05
  8  0.226546
  9  1.90584
  10  3.29755e-06
  11  3.65938
  12  3.68673
  13  1.82123e-05
  14  4.6743
  15  4.16531e-05
  16  4.0997
  17  1.20232
  18  0.249048
  19  0.122239
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  9.966e-01  1.906e+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.177e+00  1.222e-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.083e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10809/likelihoodResults_311385601_311644801_4FGL_J1505.0+0326_daily_bin278.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) = 9981.05790112
delta logL = 1.98848904155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9980.96847724
delta logL = 2.07791291849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55656       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .92224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2265       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9980.968     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      274 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55650        .30897        .38519E-04    .25205E-03
   2  alpha         5.0000        .68328        .59209E-01** at limit **
   3  Normalizat    .92225        .24984        .42022E-03    .15475E-05
   4  Prefactor     1.2265        .12280        .18694E-03    .46219E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.556498
  alpha      = 5
  Normalizat = 0.922251
  Prefactor  = 1.22651
 **********
 **   18 **HESSE 
 **********

 FCN=   9980.968     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55650        .30742        .15408E-05   -1.5559    
   2  alpha         5.0000        .68327        .11842E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92225        .24999        .84044E-04   -.95683    
   4  Prefactor     1.2265        .12288        .74776E-05   -.85519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03081e-09
Minuit parameter uncertainties:
  1  0.307423
  2  6.45635e-05
  3  0.250302
  4  0.122907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10809': 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) = 9980.96847714
delta logL = 2.0779130147

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  5.565e-01  3.074e-01  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  5.000e+00  6.456e-05  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.227e+00  1.229e-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.223e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 226.273 3.447
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.50e-07 +/- 8.22e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.11e-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/10809/cmap_HighResolution_311385601_311644801_4FGL_J1505.0+0326_daily_bin278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', comment='SUCCESS', energy_flux2='2.02e-05', dlogl='2.08e+00', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-10 22:11:31.468934', photon_index_error2='0.00', photon_index2='5.00', ts='0.36', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.11e-05', EG='1.08', time_epoch_completed='1631337091.47', return_code='0', job_id='10809', GAL2='1.23', EG2='0.92', return_code2='0', photon_flux_error2='8.22e-08', ts2='5.06', photon_index='2.49' WHERE bin_id='278' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:11:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 10809: <4FGL_J1505.0+0326_daily_bin278> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin278> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:56:12 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:56:14 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:14 2021
Terminated at Fri Sep 10 22:11:32 2021
Results reported at Fri Sep 10 22:11:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin278 226.273 3.4472 311385601 311644801 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

