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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin288
RA = 226.273, Dec = 3.4472
tmin = 313977601, tmax = 314236801
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='10823', job_status='RUN', time_executed='2021-09-10 21:58:09.336679', time_epoch_executed='1631336289.34' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10823

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10823/ft1_4FGL_J1505.0+0326_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10823/ft2_4FGL_J1505.0+0326_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10823/ft1_4FGL_J1505.0+0326_daily_bin288.fits outfile=/scratch/kocevski/10823/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin288.fits ra=226.273 dec=3.4472 rad=12.0 tmin=313977601.0 tmax=314236801.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.38
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10823/ft1_filtered_4FGL_J1505.0+0326_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/10823/ft2_4FGL_J1505.0+0326_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/10823/ltcube_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.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/10823/ft2_4FGL_J1505.0+0326_daily_bin288.fits
.....................!
real 12.22
user 11.88
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10823/ft1_filtered_4FGL_J1505.0+0326_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/10823/ft2_4FGL_J1505.0+0326_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/10823/ltcube_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.fits outfile=/scratch/kocevski/10823/expmap_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.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/10823/ltcube_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.fits
.....................!
real 193.39
user 187.76
sys 5.09

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/10823/ft1_filtered_4FGL_J1505.0+0326_daily_bin288.fits scfile=/scratch/kocevski/10823/ft2_4FGL_J1505.0+0326_daily_bin288.fits outfile=/scratch/kocevski/10823/cmap_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.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/10823/ft1_filtered_4FGL_J1505.0+0326_daily_bin288.fits scfile=/scratch/kocevski/10823/ft2_4FGL_J1505.0+0326_daily_bin288.fits outfile=/scratch/kocevski/10823/cmap_HighResolution_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .47430       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11709E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.579       1.0000         .10000E-03   10000.    
     8 'norm      '    .32251       1.0000         .10000E-03   10000.    
     9 'norm      '    .99712       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14325E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .62118E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4990       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1824       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2276       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93929       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=   6970.541     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1652 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.709       -.44854E-07** at limit **
   2  norm          .42329        12.410        .79769E-06   -.10689E-03
   3  Prefactor     .10000E-03    47.132        .10052E-05** at limit **
   4  Prefactor     .10000E-03    17.147        .29105E-06** at limit **
   5  norm          .10000E-03    10.501        .90560E-07** at limit **
   6  Prefactor     .10000E-03    26.192       -.35864E-06** at limit **
   7  Prefactor     12.582        12.659        .99666E-07   -.92218E-05
   8  norm          .32255        .15718        .79546E-08   -.34100E-03
   9  norm          .99919        2.4113        .10931E-05    .20865E-04
  10  norm          .10000E-03    1.7921        .19750E-08** at limit **
  11  norm          .10009E-03    2.8279       -.50187E-06** at limit **
  12  norm          .10081E-03    2.3541        .55644E-06** at limit **
  13  Prefactor     .10000E-03    18.985       -.88634E-07** at limit **
  14  Prefactor     2.5041        5.3248        .70752E-06   -.57244E-04
  15  Prefactor     .10000E-03    70.797       -.21554E-05** at limit **
  16  Prefactor     1.1801        4.8379        .25481E-05    .90531E-04
  17  norm          7.2304        5.0285       -.41773E-06   -.10950E-03
  18  Normalizat    1.2848        .22147       -.97867E-06   -.19238E-03
  19  Prefactor     .93933        .11178       -.58576E-06   -.27983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.423291
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.582
  norm       = 0.322551
  norm       = 0.99919
  norm       = 0.0001
  norm       = 0.00010009
  norm       = 0.00010081
  Prefactor  = 0.0001
  Prefactor  = 2.50414
  Prefactor  = 0.000100003
  Prefactor  = 1.18008
  norm       = 7.23044
  Normalizat = 1.28482
  Prefactor  = 0.939327
 **********
 **   18 **HESSE 
 **********

 FCN=   6970.541     FROM HESSE     STATUS=OK           278 CALLS     1930 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .42329        91.245        .56824E-02   -1.5578    
   3  Prefactor     .10000E-03    47.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.582        12.662        .11294E-03   -1.4998    
   8  norm          .32255        .15589        .22196E-04   -1.5594    
   9  norm          .99919        2.4129        .18699E-03   -1.5508    
  10  norm          .10000E-03    1.7924        .10915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10009E-03    26.765        .26539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10081E-03    3.6600        .43494E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5041        5.2762        .25853E-03   -1.5391    
  15  Prefactor     .10000E-03    72.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1801        4.8297        .34257E-03   -1.5491    
  17  norm          7.2304        5.0161        .14920E-03   -1.5170    
  18  Normalizat    1.2848        .25939        .32217E-03   -.84021    
  19  Prefactor     .93933        .13074        .18584E-03   -.94780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31052e-09
Minuit parameter uncertainties:
  1  1.80229e-05
  2  12.4473
  3  0.000627266
  4  0.000102293
  5  1.48543e-05
  6  0.000136171
  7  12.6651
  8  0.155893
  9  2.41318
  10  2.57967e-07
  11  0.00310715
  12  0.00344377
  13  2.6981e-05
  14  5.27714
  15  0.000972881
  16  4.77514
  17  5.01637
  18  0.259648
  19  0.130786
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  9.992e-01  2.413e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.490e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  4.151e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.393e-01  1.308e-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.285e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10823/likelihoodResults_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.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) = 6970.36145702
delta logL = 0.179432061504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6970.3586726
delta logL = 0.182216484376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83687       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6818       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95110       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6970.359     FROM MIGRAD    STATUS=FAILED        94 CALLS      258 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83615        8.0015        .25153E-03    .32665E-03
   2  alpha         3.6824        4.2296        .42927E-01    .18202E-03
   3  Normalizat    1.2462        .26417        .32640E-03   -.13236E-05
   4  Prefactor     .95109        .13127        .18481E-03   -.17224E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6970.359     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      342 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83615        8.0015        .78980E-04   -1.5525    
   2  alpha         3.6824        4.2296        .20370E-02    .49267    
   3  Normalizat    1.2462        .26417        .25084E-03   -.85187    
   4  Prefactor     .95109        .13127        .12788E-03   -.94378    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6970.359     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      373 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83615        2.2339        .50306E-04   -.85876E-05
   2  alpha         3.6824        3.7768        .85855E-02    .69178E-05
   3  Normalizat    1.2462        .26458        .13056E-04   -.12191E-05
   4  Prefactor     .95109        .13001        .73923E-05   -.18455E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.836149
  alpha      = 3.68244
  Normalizat = 1.24621
  Prefactor  = 0.951092
 **********
 **   18 **HESSE 
 **********

 FCN=   6970.359     FROM HESSE     STATUS=OK            25 CALLS      398 TOTAL
                     EDM=   .54E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83615        2.0858        .20123E-05   -1.5525    
   2  alpha         3.6824        3.7003        .17171E-02    .49267    
   3  Normalizat    1.2462        .26424        .26112E-05   -.85187    
   4  Prefactor     .95109        .12979        .14785E-05   -.94378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41356e-14
Minuit parameter uncertainties:
  1  2.08596
  2  2.20631
  3  0.264521
  4  0.129832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10823': 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) = 6970.35867253
delta logL = 0.182216549186

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  8.361e-01  2.086e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  3.682e+00  2.206e+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.511e-01  1.298e-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.246e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/10823/cmap_HighResolution_313977601_314236801_4FGL_J1505.0+0326_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-10 22:07:33.659632', job_id='10823', GAL2='0.95', fit_tolerance='1e-08', EG2='1.25', EG='1.28', time_epoch_completed='1631336853.66', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.82e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='288' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:07:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 10823: <4FGL_J1505.0+0326_daily_bin288> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin288 226.273 3.4472 313977601 314236801 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

