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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin920
RA = 226.273, Dec = 3.4472
tmin = 477792001, tmax = 478051201
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='15787', job_status='RUN', time_executed='2021-09-10 22:14:00.914810', time_epoch_executed='1631337240.91' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='920'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15787/ft1_4FGL_J1505.0+0326_daily_bin920.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15787/ft2_4FGL_J1505.0+0326_daily_bin920.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15787/ft1_4FGL_J1505.0+0326_daily_bin920.fits outfile=/scratch/kocevski/15787/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin920.fits ra=226.273 dec=3.4472 rad=12.0 tmin=477792001.0 tmax=478051201.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.67
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15787/ft1_filtered_4FGL_J1505.0+0326_daily_bin920.fits" evtable="EVENTS" scfile=/scratch/kocevski/15787/ft2_4FGL_J1505.0+0326_daily_bin920.fits sctable="SC_DATA" outfile=/scratch/kocevski/15787/ltcube_477792001_478051201_4FGL_J1505.0+0326_daily_bin920.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/15787/ft2_4FGL_J1505.0+0326_daily_bin920.fits
.....................!
real 12.14
user 11.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15787/ft1_filtered_4FGL_J1505.0+0326_daily_bin920.fits evtable="EVENTS" scfile=/scratch/kocevski/15787/ft2_4FGL_J1505.0+0326_daily_bin920.fits sctable="SC_DATA" expcube=/scratch/kocevski/15787/ltcube_477792001_478051201_4FGL_J1505.0+0326_daily_bin920.fits outfile=/scratch/kocevski/15787/expmap_477792001_478051201_4FGL_J1505.0+0326_daily_bin920.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/15787/ltcube_477792001_478051201_4FGL_J1505.0+0326_daily_bin920.fits
.....................!
real 190.02
user 185.57
sys 4.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/15787/ft1_filtered_4FGL_J1505.0+0326_daily_bin920.fits scfile=/scratch/kocevski/15787/ft2_4FGL_J1505.0+0326_daily_bin920.fits outfile=/scratch/kocevski/15787/cmap_477792001_478051201_4FGL_J1505.0+0326_daily_bin920.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15787/ft1_filtered_4FGL_J1505.0+0326_daily_bin920.fits scfile=/scratch/kocevski/15787/ft2_4FGL_J1505.0+0326_daily_bin920.fits outfile=/scratch/kocevski/15787/cmap_HighResolution_477792001_478051201_4FGL_J1505.0+0326_daily_bin920.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0706       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.597       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75119E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0928       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7406       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.5157       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4013       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3315       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7396       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0096       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=   8415.773     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1967 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0682        19.928       -.22390E-06   -.16139E-04
   2  norm          .10000E-03    6.3173        .15530E-06** at limit **
   3  Prefactor     45.472        54.846        .15028E-05    .12092E-03
   4  Prefactor     .10003E-03    145.86        .28465E-04** at limit **
   5  norm          .10000E-03    14.652        .27804E-06** at limit **
   6  Prefactor     .10000E-03    11.453       -.23074E-06** at limit **
   7  Prefactor     18.252        20.294       -.14868E-06    .20211E-06
   8  norm          2.0929        .31738        .81648E-08    .65283E-03
   9  norm          3.7409        2.0601       -.26259E-07    .64631E-04
  10  norm          .10000E-03    4.0450       -.15992E-06** at limit **
  11  norm          9.5155        5.4148       -.63915E-07    .43786E-04
  12  norm          .10000E-03    1.2421       -.11819E-06** at limit **
  13  Prefactor     .10000E-03    45.478       -.54566E-06** at limit **
  14  Prefactor     6.4020        5.3567        .23835E-06    .27489E-03
  15  Prefactor     .10000E-03    31.369        .65200E-06** at limit **
  16  Prefactor     2.3309        4.8697       -.19906E-05   -.33633E-03
  17  norm          1.7398        3.3743       -.90102E-06   -.23597E-03
  18  Normalizat    1.0367        .23790        .10917E-05    .24975E-03
  19  Prefactor     1.0097        .11446       -.24692E-06   -.39775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.06824
  norm       = 0.0001
  Prefactor  = 45.4718
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2522
  norm       = 2.0929
  norm       = 3.74091
  norm       = 0.0001
  norm       = 9.51547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.40196
  Prefactor  = 0.000100001
  Prefactor  = 2.33095
  norm       = 1.73982
  Normalizat = 1.03672
  Prefactor  = 1.00969
 **********
 **   18 **HESSE 
 **********

 FCN=   8415.773     FROM HESSE     STATUS=OK           272 CALLS     2239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0682        19.950        .13308E-03   -1.5106    
   2  norm          .10000E-03    6.3193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.472        55.118        .29688E-03   -1.4358    
   4  Prefactor     .10003E-03    144.55        .75097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.252        20.316        .93749E-04   -1.4853    
   8  norm          2.0929        .31824        .18963E-04   -1.5419    
   9  norm          3.7409        2.0591        .93738E-04   -1.5321    
  10  norm          .10000E-03    4.0916        .18020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.5155        5.4151        .12991E-03   -1.5091    
  12  norm          .10000E-03    1.2485        .99834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4020        5.3492        .15864E-03   -1.5202    
  15  Prefactor     .10000E-03    31.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3309        4.8824        .26857E-03   -1.5403    
  17  norm          1.7398        3.3414        .22649E-03   -1.5444    
  18  Normalizat    1.0367        .26589        .38070E-03   -.91810    
  19  Prefactor     1.0097        .12870        .19070E-03   -.92407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78555e-09
Minuit parameter uncertainties:
  1  19.9644
  2  8.85497e-06
  3  55.1797
  4  0.0040297
  5  3.61914e-06
  6  1.62497e-05
  7  20.3236
  8  0.318242
  9  2.05913
  10  9.0198e-06
  11  5.4154
  12  2.91495e-06
  13  7.49887e-05
  14  5.3496
  15  0.000348912
  16  4.88327
  17  3.34177
  18  0.266236
  19  0.128742
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.010e+00  1.287e-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.037e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.61
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.89e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.17e-05

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) = 8415.75688478
delta logL = 0.0159971009143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8415.75653061
delta logL = 0.0163512656763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7265       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5985       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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=   8415.757     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7229        54.152        .52294E-02    .94870E-03
   2  alpha         2.5971        2.7874        .41192        .43002E-04
   3  Normalizat    1.0297        .18255        .86225E-01    .74403E-03
   4  Prefactor     1.0117        .92151E-01    .43098E-01    .14221E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.72291
  alpha      = 2.59712
  Normalizat = 1.02971
  Prefactor  = 1.0117
 **********
 **   18 **HESSE 
 **********

 FCN=   8415.757     FROM HESSE     STATUS=OK            29 CALLS      258 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7229        2.0306        .91482E-04   -1.5322    
   2  alpha         2.5971        .59493        .18508E-01    .38859E-01
   3  Normalizat    1.0297        .25779        .38180E-03   -.92042    
   4  Prefactor     1.0117        .12681        .19053E-03   -.92341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01431e-09
Minuit parameter uncertainties:
  1  2.03059
  2  0.600699
  3  0.258101
  4  0.126852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15787': 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) = 8415.75652493
delta logL = 0.0163569495562

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.723e+00  2.031e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.597e+00  6.007e-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:  1.012e+00  1.269e-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.030e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.64
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.60 +/- 0.60
Photon Flux (Free Index): 8.52e-08 +/- 5.62e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.15e-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/15787/cmap_HighResolution_477792001_478051201_4FGL_J1505.0+0326_daily_bin920.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.89e-08', energy_flux2='2.13e-05', photon_flux_error='4.34e-08', dlogl='1.64e-02', energy_flux='2.13e-05', photon_flux2='8.52e-08', job_status='DONE', time_completed='2021-09-10 22:23:54.932416', photon_index_error2='0.60', photon_index2='2.60', ts='7.61', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='1.04', time_epoch_completed='1631337834.93', return_code='0', job_id='15787', GAL2='1.01', EG2='1.03', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.62e-08', ts2='7.64', photon_index='2.49' WHERE bin_id='920' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:23:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 15787: <4FGL_J1505.0+0326_daily_bin920> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin920> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 22:11:14 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:11:16 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:11:16 2021
Terminated at Fri Sep 10 22:23:55 2021
Results reported at Fri Sep 10 22:23:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin920 226.273 3.4472 477792001 478051201 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

