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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin230
RA = 226.273, Dec = 3.4472
tmin = 298944001, tmax = 299203201
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='10738', job_status='RUN', time_executed='2021-09-10 21:58:01.901420', time_epoch_executed='1631336281.9' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10738/ft1_4FGL_J1505.0+0326_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10738/ft2_4FGL_J1505.0+0326_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10738/ft1_4FGL_J1505.0+0326_daily_bin230.fits outfile=/scratch/kocevski/10738/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin230.fits ra=226.273 dec=3.4472 rad=12.0 tmin=298944001.0 tmax=299203201.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.44
user 3.22
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10738/ft1_filtered_4FGL_J1505.0+0326_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/10738/ft2_4FGL_J1505.0+0326_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/10738/ltcube_298944001_299203201_4FGL_J1505.0+0326_daily_bin230.fits outfile=/scratch/kocevski/10738/expmap_298944001_299203201_4FGL_J1505.0+0326_daily_bin230.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/10738/ltcube_298944001_299203201_4FGL_J1505.0+0326_daily_bin230.fits
.....................!
real 191.01
user 186.05
sys 4.59

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/10738/ft1_filtered_4FGL_J1505.0+0326_daily_bin230.fits scfile=/scratch/kocevski/10738/ft2_4FGL_J1505.0+0326_daily_bin230.fits outfile=/scratch/kocevski/10738/cmap_298944001_299203201_4FGL_J1505.0+0326_daily_bin230.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.677       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33821       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4455       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.9299       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .70875E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6657       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74918       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=   7269.438     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1890 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.674        24.084       -.30732E-06    .59468E-04
   2  norm          .10000E-03    33.279       -.21947E-05** at limit **
   3  Prefactor     .10001E-03    263.52        .17330E-04** at limit **
   4  Prefactor     .10000E-03    31.229        .13494E-06** at limit **
   5  norm          17.636        21.821        .31302E-06   -.10143E-03
   6  Prefactor     .10000E-03    14.635       -.74006E-06** at limit **
   7  Prefactor     .10000E-03    4.8408       -.18068E-06** at limit **
   8  norm          .33819        .16598       -.56042E-07   -.11817E-03
   9  norm          2.4450        2.5930       -.78679E-06    .10221E-03
  10  norm          .10000E-03    2.3642       -.10005E-06** at limit **
  11  norm          .10000E-03    1.2903       -.20607E-06** at limit **
  12  norm          6.9297        4.1313        .12272E-06    .45240E-03
  13  Prefactor     .10000E-03    47.546       -.18505E-05** at limit **
  14  Prefactor     5.2259        5.8163       -.48669E-06    .77634E-03
  15  Prefactor     63.683        38.208        .35857E-05    .85820E-05
  16  Prefactor     .10000E-03    3.0524       -.59928E-06** at limit **
  17  norm          .56003E-01    81.180       -.47285E-04    .56434E-04
  18  Normalizat    1.6658        .22641        .25057E-05    .21529E-03
  19  Prefactor     .74921        .10752        .12915E-05    .48601E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6744
  norm       = 0.000100005
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  norm       = 17.6364
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.338187
  norm       = 2.44503
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.92972
  Prefactor  = 0.000100003
  Prefactor  = 5.22586
  Prefactor  = 63.6834
  Prefactor  = 0.0001
  norm       = 0.056003
  Normalizat = 1.66579
  Prefactor  = 0.749212
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.438     FROM HESSE     STATUS=OK           268 CALLS     2158 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.674        24.126        .88083E-04   -1.4798    
   2  norm          .10000E-03    33.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    263.13        .21275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.636        21.845        .95362E-04   -1.4868    
   6  Prefactor     .10000E-03    14.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33819        .16531        .23322E-04   -1.5592    
   9  norm          2.4450        2.5898        .13247E-03   -1.5395    
  10  norm          .10000E-03    2.3662        .12804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2961        .94623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.9297        4.1293        .12838E-03   -1.5181    
  13  Prefactor     .10000E-03    47.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2259        5.8233        .17584E-03   -1.5251    
  15  Prefactor     63.683        37.998        .50291E-04   -1.4110    
  16  Prefactor     .10000E-03    3.1114        .14553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .56003E-01    4.2903        .49366E-01   -1.5661    
  18  Normalizat    1.6658        .26278        .29653E-03   -.73221    
  19  Prefactor     .74921        .12493        .20591E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31726e-09
Minuit parameter uncertainties:
  1  24.1372
  2  0.00079936
  3  0.00279371
  4  0.000507475
  5  21.8548
  6  0.000225714
  7  2.69504e-05
  8  0.165314
  9  2.58991
  10  1.00395e-05
  11  1.73851e-05
  12  4.12949
  13  0.000769959
  14  5.82395
  15  38.0125
  16  5.87783e-05
  17  0.979547
  18  0.263005
  19  0.124975
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  2.445e+00  2.590e+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:  7.492e-01  1.250e-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.666e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 5.46e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/10738/likelihoodResults_298944001_299203201_4FGL_J1505.0+0326_daily_bin230.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) = 7269.43362623
delta logL = 0.0042579464307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7269.43345421
delta logL = 0.00442996402307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4300       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5824       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75059       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=   7269.433     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4221        107.74        .65629E-02    .84801E-03
   2  alpha         2.5784        3.4860        .41180        .12581E-04
   3  Normalizat    1.6617        .11546        .67104E-01   -.90762E-04
   4  Prefactor     .75054        .75230E-01    .43071E-01   -.25869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42213
  alpha      = 2.57842
  Normalizat = 1.66173
  Prefactor  = 0.750545
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.433     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4221        2.5848        .13034E-03   -1.5397    
   2  alpha         2.5784        .94642        .26049E-01    .31375E-01
   3  Normalizat    1.6617        .25767        .29682E-03   -.73330    
   4  Prefactor     .75054        .12472        .20575E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84117e-11
Minuit parameter uncertainties:
  1  2.58492
  2  0.970642
  3  0.257877
  4  0.124765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10738': 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) = 7269.43343787
delta logL = 0.00444630676429

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  2.422e+00  2.585e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.578e+00  9.706e-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:  7.505e-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.662e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.58 +/- 0.97
Photon Flux (Free Index): 5.46e-08 +/- 6.28e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.45e-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/10738/cmap_HighResolution_298944001_299203201_4FGL_J1505.0+0326_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-05', comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='1.38e-05', photon_flux_error='5.46e-08', dlogl='4.45e-03', energy_flux='1.39e-05', photon_flux2='5.46e-08', job_status='DONE', time_completed='2021-09-10 22:07:41.472892', photon_index_error2='0.97', photon_index2='2.58', ts='1.22', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.45e-05', EG='1.67', time_epoch_completed='1631336861.47', return_code='0', job_id='10738', GAL2='0.75', EG2='1.66', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.28e-08', ts2='1.24', photon_index='2.49' WHERE bin_id='230' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:07:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 10738: <4FGL_J1505.0+0326_daily_bin230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin230 226.273 3.4472 298944001 299203201 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 :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            696 sec.

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

