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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin316
RA = 226.273, Dec = 3.4472
tmin = 321235201, tmax = 321494401
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='10863', job_status='RUN', time_executed='2021-09-10 21:59:24.153061', time_epoch_executed='1631336364.15' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10863/ft1_4FGL_J1505.0+0326_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10863/ft2_4FGL_J1505.0+0326_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10863/ft1_4FGL_J1505.0+0326_daily_bin316.fits outfile=/scratch/kocevski/10863/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin316.fits ra=226.273 dec=3.4472 rad=12.0 tmin=321235201.0 tmax=321494401.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.52
user 3.30
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10863/ft1_filtered_4FGL_J1505.0+0326_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/10863/ft2_4FGL_J1505.0+0326_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/10863/ltcube_321235201_321494401_4FGL_J1505.0+0326_daily_bin316.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/10863/ft2_4FGL_J1505.0+0326_daily_bin316.fits
.....................!
real 11.89
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10863/ft1_filtered_4FGL_J1505.0+0326_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/10863/ft2_4FGL_J1505.0+0326_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/10863/ltcube_321235201_321494401_4FGL_J1505.0+0326_daily_bin316.fits outfile=/scratch/kocevski/10863/expmap_321235201_321494401_4FGL_J1505.0+0326_daily_bin316.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/10863/ltcube_321235201_321494401_4FGL_J1505.0+0326_daily_bin316.fits
.....................!
real 190.53
user 185.09
sys 5.07

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/10863/ft1_filtered_4FGL_J1505.0+0326_daily_bin316.fits scfile=/scratch/kocevski/10863/ft2_4FGL_J1505.0+0326_daily_bin316.fits outfile=/scratch/kocevski/10863/cmap_321235201_321494401_4FGL_J1505.0+0326_daily_bin316.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.273 yref=3.4472 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5529       1.0000         .10000E-03   10000.    
     8 'norm      '    .84534       1.0000         .10000E-03   10000.    
     9 'norm      '    .25784E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7518       1.0000         .10000E-03   10000.    
    12 'norm      '    .18286E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4296       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1928       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3172       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98845       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=   8186.370     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1649 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.411        .16538E-05** at limit **
   2  norm          .10000E-03    7.1806        .22957E-06** at limit **
   3  Prefactor     .10000E-03    21.166        .59534E-07** at limit **
   4  Prefactor     .10000E-03    16.598        .89158E-06** at limit **
   5  norm          7.0586        12.758        .67184E-05    .29125E-03
   6  Prefactor     .83590        19.663       -.31343E-05    .30311E-03
   7  Prefactor     3.5626        17.828       -.16725E-05   -.19564E-04
   8  norm          .84508        .25202        .99012E-08    .17320E-02
   9  norm          .10000E-03    1.0931        .22019E-06** at limit **
  10  norm          .10000E-03    2.1470       -.58171E-07** at limit **
  11  norm          3.7510        4.3432        .48786E-06   -.41119E-04
  12  norm          .10000E-03    2.9343       -.26337E-06** at limit **
  13  Prefactor     .10000E-03    19.285       -.52471E-05** at limit **
  14  Prefactor     .10000E-03    1.7293        .10418E-06** at limit **
  15  Prefactor     3.2657        22.131       -.11423E-05   -.26760E-04
  16  Prefactor     6.4256        4.5000       -.10735E-06   -.79517E-04
  17  norm          3.1901        2.2209        .67868E-06   -.33789E-02
  18  Normalizat    1.3173        .22372       -.69835E-06    .11376E-03
  19  Prefactor     .98835        .10696       -.32561E-06    .91904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.05861
  Prefactor  = 0.835897
  Prefactor  = 3.56261
  norm       = 0.845082
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.75101
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26572
  Prefactor  = 6.42564
  norm       = 3.19006
  Normalizat = 1.3173
  Prefactor  = 0.988353
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.370     FROM HESSE     STATUS=OK           272 CALLS     1921 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.1827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0586        12.877        .15061E-03   -1.5177    
   6  Prefactor     .83590        153.87        .72463E-02   -1.5525    
   7  Prefactor     3.5626        17.836        .21443E-03   -1.5330    
   8  norm          .84508        .25066        .23280E-04   -1.5524    
   9  norm          .10000E-03    7.1174        .17636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1486        .12947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7510        4.3418        .19520E-03   -1.5321    
  12  norm          .10000E-03    9.3680        .29436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7582        .11617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2657        22.195        .22418E-03   -1.5347    
  16  Prefactor     6.4256        4.5048        .15487E-03   -1.5201    
  17  norm          3.1901        4.2057        .10270E-02   -1.5351    
  18  Normalizat    1.3173        .25829        .34479E-03   -.83051    
  19  Prefactor     .98835        .12475        .19217E-03   -.93119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32979e-08
Minuit parameter uncertainties:
  1  5.90169e-05
  2  4.66266e-06
  3  5.05192e-08
  4  0.000109767
  5  12.882
  6  22.7406
  7  15.9499
  8  0.250659
  9  8.81638e-05
  10  9.441e-08
  11  4.34217
  12  0.000260341
  13  0.000196695
  14  3.65045e-06
  15  17.0363
  16  4.50503
  17  4.20606
  18  0.258542
  19  0.12479
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  8.816e-05  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.884e-01  1.248e-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.317e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10863/likelihoodResults_321235201_321494401_4FGL_J1505.0+0326_daily_bin316.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): 102
logL (Free Index) = 8186.37074395
delta logL = -0.000671147524372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8186.37007676
delta logL = -3.95980077883e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14744E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5846       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98809       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8186.370     FROM MIGRAD    STATUS=FAILED       111 CALLS      276 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11364E-03    8.4851        .23925E-01** at limit **
   2  alpha         3.1672        3.7896        .16473        .30390E-05
   3  Normalizat    1.3173        .11104E-01    .34479E-03   -.83486E-04
   4  Prefactor     .98835        .54855E-02    .19217E-03   -.32136E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8186.369     FROM SIMPLEX   STATUS=PROGRESS     111 CALLS      387 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69358E-01    8.4851        .48950E-03    .83700E-02
   2  alpha         3.0990        3.7896        .91795E-02    .30390E-05
   3  Normalizat    1.3166        .11104E-01    .23897E-04   -.83486E-04
   4  Prefactor     .98799        .54855E-02    .19440E-04   -.32136E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8186.369     FROM MIGRAD    STATUS=FAILED       114 CALLS      501 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72743E-01    13.256        .20019E-02    .36064E-02
   2  alpha         3.1056        3.8257        .26356E-02   -.22861E-06
   3  Normalizat    1.3150        .25687        .27584E-05    .11540E-04
   4  Prefactor     .98868        .12290        .76866E-05    .19819E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.072743
  alpha      = 3.10562
  Normalizat = 1.31502
  Prefactor  = 0.988676
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.369     FROM HESSE     STATUS=OK            25 CALLS      526 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72743E-01    11.712        .40037E-03   -1.5654    
   2  alpha         3.1056        3.9182        .10542E-03    .24468    
   3  Normalizat    1.3150        .25496        .55167E-06   -.83119    
   4  Prefactor     .98868        .12293        .15373E-05   -.93108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29531e-11
Minuit parameter uncertainties:
  1  1.84511
  2  5.53936
  3  0.2552
  4  0.122961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10863': 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): 1
logL (Free Index) = 8186.36924681
delta logL = 0.000825993016406

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  7.274e-02  1.845e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  3.106e+00  5.539e+00  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.887e-01  1.230e-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.315e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.273 3.447

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/10863/cmap_HighResolution_321235201_321494401_4FGL_J1505.0+0326_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-10 22:09:31.551489', job_id='10863', GAL2='0.99', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631336971.55', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.26e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='316' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 10863: <4FGL_J1505.0+0326_daily_bin316> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin316 226.273 3.4472 321235201 321494401 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 :                                   604.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            797 sec.

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

