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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin834
RA = 226.273, Dec = 3.4472
tmin = 455500801, tmax = 455760001
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='14299', job_status='RUN', time_executed='2021-09-10 22:09:56.094106', time_epoch_executed='1631336996.09' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='834'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14299/ft1_4FGL_J1505.0+0326_daily_bin834.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14299/ft2_4FGL_J1505.0+0326_daily_bin834.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14299/ft1_4FGL_J1505.0+0326_daily_bin834.fits outfile=/scratch/kocevski/14299/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin834.fits ra=226.273 dec=3.4472 rad=12.0 tmin=455500801.0 tmax=455760001.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.40
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14299/ft1_filtered_4FGL_J1505.0+0326_daily_bin834.fits" evtable="EVENTS" scfile=/scratch/kocevski/14299/ft2_4FGL_J1505.0+0326_daily_bin834.fits sctable="SC_DATA" outfile=/scratch/kocevski/14299/ltcube_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.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/14299/ft2_4FGL_J1505.0+0326_daily_bin834.fits
.....................!
real 12.07
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14299/ft1_filtered_4FGL_J1505.0+0326_daily_bin834.fits evtable="EVENTS" scfile=/scratch/kocevski/14299/ft2_4FGL_J1505.0+0326_daily_bin834.fits sctable="SC_DATA" expcube=/scratch/kocevski/14299/ltcube_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.fits outfile=/scratch/kocevski/14299/expmap_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.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/14299/ltcube_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.fits
.....................!
real 191.20
user 185.90
sys 4.85

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/14299/ft1_filtered_4FGL_J1505.0+0326_daily_bin834.fits scfile=/scratch/kocevski/14299/ft2_4FGL_J1505.0+0326_daily_bin834.fits outfile=/scratch/kocevski/14299/cmap_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14299/ft1_filtered_4FGL_J1505.0+0326_daily_bin834.fits scfile=/scratch/kocevski/14299/ft2_4FGL_J1505.0+0326_daily_bin834.fits outfile=/scratch/kocevski/14299/cmap_HighResolution_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12773E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8431       1.0000         .10000E-03   10000.    
     9 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12184E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0413       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0846       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46387E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1225       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2937       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0417       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=   7910.385     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1930 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.574        .10581E-04** at limit **
   2  norm          .10000E-03    6.0000       -.18958E-05** at limit **
   3  Prefactor     .10000E-03    23.646        .15206E-04** at limit **
   4  Prefactor     .10000E-03    11.233        .64257E-05** at limit **
   5  norm          .10000E-03    7.6662       -.48507E-05** at limit **
   6  Prefactor     .10000E-03    21.235        .70782E-06** at limit **
   7  Prefactor     .10000E-03    45.393       -.20236E-04** at limit **
   8  norm          2.8430        .35885       -.13287E-07    .78336E-03
   9  norm          .10000E-03    1.5377       -.45405E-07** at limit **
  10  norm          .10000E-03    6.4549        .52943E-05** at limit **
  11  norm          .10000E-03    6.9308       -.11882E-05** at limit **
  12  norm          4.0412        3.3924       -.12856E-06   -.40917E-03
  13  Prefactor     .10000E-03    17.548       -.16380E-04** at limit **
  14  Prefactor     3.0842        4.4977       -.11466E-05   -.73400E-03
  15  Prefactor     11.317        32.033       -.37360E-06   -.65143E-06
  16  Prefactor     .10000E-03    1.9843       -.14466E-07** at limit **
  17  norm          5.1238        4.6148       -.81192E-06   -.20244E-03
  18  Normalizat    1.2939        .24126        .41635E-06    .86964E-04
  19  Prefactor     1.0416        .11984        .28429E-06    .13815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.84297
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.04122
  Prefactor  = 0.0001
  Prefactor  = 3.08415
  Prefactor  = 11.317
  Prefactor  = 0.000100003
  norm       = 5.12376
  Normalizat = 1.29391
  Prefactor  = 1.04165
 **********
 **   18 **HESSE 
 **********

 FCN=   7910.385     FROM HESSE     STATUS=OK           264 CALLS     2194 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.0006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.6808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8430        .36071        .17970E-04   -1.5371    
   9  norm          .10000E-03    2.7942        .20965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.6427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.2270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0412        3.3792        .72629E-03   -1.5306    
  13  Prefactor     .10000E-03    17.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0842        4.5161        .21854E-03   -1.5357    
  15  Prefactor     11.317        31.897        .11909E-03   -1.5035    
  16  Prefactor     .10000E-03    10.770        .24056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1238        4.6021        .17210E-03   -1.5255    
  18  Normalizat    1.2939        .27504        .36600E-03   -.83748    
  19  Prefactor     1.0416        .13804        .20287E-03   -.91354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55066e-10
Minuit parameter uncertainties:
  1  9.84746e-05
  2  1.15477e-06
  3  7.57594e-06
  4  2.52558e-06
  5  1.39198e-06
  6  5.33685e-06
  7  0.000346876
  8  0.360708
  9  2.65807e-08
  10  5.16308e-05
  11  4.74033e-06
  12  3.37933
  13  8.39385e-06
  14  4.51656
  15  31.9453
  16  0.000345956
  17  4.60243
  18  0.275356
  19  0.138089
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  2.658e-08  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.042e+00  1.381e-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.294e+00  2.754e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14299/likelihoodResults_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.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) = 7909.74557399
delta logL = 0.639121423196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7909.74422612
delta logL = 0.640469292251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44984       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7197       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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=   7909.744     FROM MIGRAD    STATUS=FAILED        86 CALLS      305 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45020        19.574        .54662E-03    .34258E-02
   2  alpha         4.7200        4.8399        .69074E-01    .15782E-04
   3  Normalizat    1.1906        .27989        .37916E-03    .24347E-03
   4  Prefactor     1.0699        .12338        .20045E-03    .50152E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7909.744     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      394 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45020        19.574        .10692E-03    .34258E-02
   2  alpha         4.7200        4.8399        .11161E-01    .15782E-04
   3  Normalizat    1.1906        .27989        .21842E-03    .24347E-03
   4  Prefactor     1.0699        .12338        .75685E-04    .50152E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7909.744     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      425 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45018        1.0846        .21865E-04    .25244E-02
   2  alpha         4.7200        4.2846        .27630E-02    .27461E-04
   3  Normalizat    1.1906        .28339        .15166E-04    .24017E-03
   4  Prefactor     1.0699        .13923        .40090E-04    .49088E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.450179
  alpha      = 4.71999
  Normalizat = 1.19065
  Prefactor  = 1.06992
 **********
 **   18 **HESSE 
 **********

 FCN=   7909.744     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45018        1.0526        .87460E-06   -1.5574    
   2  alpha         4.7200        4.2325        .11052E-03    1.0930    
   3  Normalizat    1.1906        .28330        .30333E-05   -.86892    
   4  Prefactor     1.0699        .13922        .80180E-05   -.90434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98299e-10
Minuit parameter uncertainties:
  1  1.05261
  2  1.85584
  3  0.28367
  4  0.13927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14299': 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) = 7909.7442177
delta logL = 0.640477711434

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.502e-01  1.053e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  4.720e+00  1.856e+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:  1.070e+00  1.393e-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.191e+00  2.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 226.273 3.447
Photon Index (Free Index): 4.72 +/- 1.86
Photon Flux (Free Index): 8.76e-08 +/- 8.47e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.20e-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/14299/cmap_HighResolution_455500801_455760001_4FGL_J1505.0+0326_daily_bin834.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-05', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='6.40e-01', photon_flux2='8.76e-08', job_status='DONE', time_completed='2021-09-10 22:20:25.098252', photon_index_error2='1.86', photon_index2='4.72', ts='-0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.20e-05', EG='1.29', time_epoch_completed='1631337625.1', return_code='0', job_id='14299', GAL2='1.07', EG2='1.19', return_code2='0', photon_flux_error2='8.47e-08', ts2='1.45', photon_index='2.49' WHERE bin_id='834' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:20:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 14299: <4FGL_J1505.0+0326_daily_bin834> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin834 226.273 3.4472 455500801 455760001 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 :                                   626.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            836 sec.

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

