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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin396
RA = 226.273, Dec = 3.4472
tmin = 341971201, tmax = 342230401
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='12170', job_status='RUN', time_executed='2021-09-10 22:04:43.046326', time_epoch_executed='1631336683.05' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12170/ft1_4FGL_J1505.0+0326_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12170/ft2_4FGL_J1505.0+0326_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12170/ft1_4FGL_J1505.0+0326_daily_bin396.fits outfile=/scratch/kocevski/12170/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin396.fits ra=226.273 dec=3.4472 rad=12.0 tmin=341971201.0 tmax=342230401.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.45
user 3.22
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12170/ft1_filtered_4FGL_J1505.0+0326_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/12170/ft2_4FGL_J1505.0+0326_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/12170/ltcube_341971201_342230401_4FGL_J1505.0+0326_daily_bin396.fits outfile=/scratch/kocevski/12170/expmap_341971201_342230401_4FGL_J1505.0+0326_daily_bin396.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/12170/ltcube_341971201_342230401_4FGL_J1505.0+0326_daily_bin396.fits
.....................!
real 191.11
user 186.03
sys 4.50

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/12170/ft1_filtered_4FGL_J1505.0+0326_daily_bin396.fits scfile=/scratch/kocevski/12170/ft2_4FGL_J1505.0+0326_daily_bin396.fits outfile=/scratch/kocevski/12170/cmap_341971201_342230401_4FGL_J1505.0+0326_daily_bin396.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12170/ft1_filtered_4FGL_J1505.0+0326_daily_bin396.fits scfile=/scratch/kocevski/12170/ft2_4FGL_J1505.0+0326_daily_bin396.fits outfile=/scratch/kocevski/12170/cmap_HighResolution_341971201_342230401_4FGL_J1505.0+0326_daily_bin396.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.273 yref=3.4472 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.096       1.0000         .10000E-03   10000.    
     8 'norm      '    .79659       1.0000         .10000E-03   10000.    
     9 'norm      '    7.3757       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    97.211       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7145       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1032       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2210       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=   9868.470     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1871 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1276       -.50035E-05** at limit **
   2  norm          .10000E-03    8.4413        .26739E-06** at limit **
   3  Prefactor     47.054        81.789       -.55407E-05   -.68018E-05
   4  Prefactor     .10000E-03    9.2839        .58797E-05** at limit **
   5  norm          .10000E-03    5.7851        .21590E-07** at limit **
   6  Prefactor     .10000E-03    9.9165       -.12536E-05** at limit **
   7  Prefactor     34.085        19.704        .19861E-05   -.62225E-05
   8  norm          .79638        .24610        .18615E-07   -.85195E-03
   9  norm          7.3743        3.1548        .38732E-07   -.35637E-03
  10  norm          .10000E-03    2.2017       -.13023E-06** at limit **
  11  norm          97.211        14.885        .33763E-05   -.12908E-04
  12  norm          2.6906        2.7593        .50676E-07    .10205E-03
  13  Prefactor     .10000E-03    30.908        .48311E-06** at limit **
  14  Prefactor     .10000E-03    .98176        .25099E-07** at limit **
  15  Prefactor     .10000E-03    12.372        .27066E-07** at limit **
  16  Prefactor     1.7153        4.3998       -.12894E-05   -.13175E-02
  17  norm          .10000E-03    2.5169       -.35941E-07** at limit **
  18  Normalizat    1.1044        .25662       -.13519E-05   -.81249E-04
  19  Prefactor     1.2205        .12382       -.84099E-06   -.73618E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.0543
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0854
  norm       = 0.796383
  norm       = 7.37426
  norm       = 0.0001
  norm       = 97.2105
  norm       = 2.69063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7153
  norm       = 0.0001
  Normalizat = 1.10439
  Prefactor  = 1.22055
 **********
 **   18 **HESSE 
 **********

 FCN=   9868.470     FROM HESSE     STATUS=OK           264 CALLS     2135 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.4442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.054        82.203        .58289E-04   -1.4335    
   4  Prefactor     .10000E-03    9.2429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.7888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.085        19.702        .68627E-04   -1.4540    
   8  norm          .79638        .24511        .25817E-04   -1.5529    
   9  norm          7.3743        3.1539        .10897E-03   -1.5165    
  10  norm          .10000E-03    2.2031        .14395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          97.211        14.559        .40769E-04   -1.3733    
  12  norm          2.6906        2.7617        .16208E-03   -1.5380    
  13  Prefactor     .10000E-03    30.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .98349        .96116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7153        4.5348        .32096E-03   -1.5446    
  17  norm          .10000E-03    2.5528        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1044        .29349        .45431E-03   -.89611    
  19  Prefactor     1.2205        .14206        .21758E-03   -.85701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14311e-09
Minuit parameter uncertainties:
  1  7.78424e-06
  2  6.75553e-06
  3  82.4018
  4  7.45268e-06
  5  5.81281e-06
  6  7.27404e-06
  7  19.7056
  8  0.245115
  9  3.15399
  10  9.12877e-07
  11  14.5592
  12  2.76184
  13  3.03294e-05
  14  1.37712e-06
  15  1.68732e-05
  16  4.53567
  17  1.08207e-05
  18  0.293925
  19  0.142103
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  7.374e+00  3.154e+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.221e+00  1.421e-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.104e+00  2.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.44
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 1.55e-07 +/- 6.65e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 1.79e-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) = 9867.93890721
delta logL = 0.530905626065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9867.905691
delta logL = 0.564121827054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3438       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0387       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2031       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=   9867.906     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      209 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3438        3.2305        .37001E-02    .49336E-03
   2  alpha         2.0387        .34645        .33300       -.90619E-04
   3  Normalizat    1.1556        .24423        .10052        .26847E-04
   4  Prefactor     1.2031        .12200        .49501E-01    .11222E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.34378
  alpha      = 2.0387
  Normalizat = 1.1556
  Prefactor  = 1.20306
 **********
 **   18 **HESSE 
 **********

 FCN=   9867.906     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3438        3.2727        .10976E-03   -1.5166    
   2  alpha         2.0387        .39355        .13117E-01   -.18558    
   3  Normalizat    1.1556        .28107        .44548E-03   -.87986    
   4  Prefactor     1.2031        .14008        .21882E-03   -.86237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53616e-11
Minuit parameter uncertainties:
  1  3.27273
  2  0.395252
  3  0.281434
  4  0.14012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12170': 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) = 9867.905691
delta logL = 0.564121828167

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  7.344e+00  3.273e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.039e+00  3.953e-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.203e+00  1.401e-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.156e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.41
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.04 +/- 0.40
Photon Flux (Free Index): 1.16e-07 +/- 6.29e-08
Energy Flux (Free Index): 5.02e-05 +/- 2.36e-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/12170/cmap_HighResolution_341971201_342230401_4FGL_J1505.0+0326_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.55e-07', energy_flux2='5.02e-05', photon_flux_error='6.65e-08', dlogl='5.64e-01', energy_flux='4.20e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-10 22:15:09.186225', photon_index_error2='0.40', photon_index2='2.04', ts='9.44', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.36e-05', EG='1.10', time_epoch_completed='1631337309.19', return_code='0', job_id='12170', GAL2='1.20', EG2='1.16', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='6.29e-08', ts2='10.41', photon_index='2.49' WHERE bin_id='396' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 12170: <4FGL_J1505.0+0326_daily_bin396> in cluster <slac> Done

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

Your job looked like:

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

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

