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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1018
RA = 239.978, Dec = 23.3196
tmin = 503193601, tmax = 503452801
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='886091', job_status='RUN', time_executed='2021-09-12 23:37:38.711182', time_epoch_executed='1631515058.71' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886091/ft1_4FGL_J1559.9+2319_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886091/ft1_4FGL_J1559.9+2319_daily_bin1018.fits outfile=/scratch/kocevski/886091/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1018.fits ra=239.978 dec=23.3196 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.13
user 4.84
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.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/886091/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/886091/ltcube_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.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/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits
.....................!
real 13.46
user 13.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/886091/ltcube_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.fits outfile=/scratch/kocevski/886091/expmap_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.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/886091/ltcube_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.fits
.....................!
real 191.13
user 186.24
sys 4.41

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1559.9+2319 @ 239.978 23.3196

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits scfile=/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits outfile=/scratch/kocevski/886091/cmap_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.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=239.978 yref=23.3196 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits scfile=/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits outfile=/scratch/kocevski/886091/cmap_HighResolution_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.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=239.978 yref=23.3196 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/886091/Model_4FGL_J1559.9+2319_daily_bin1018.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/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits.....................!
real 49.07
user 47.77
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits', '/scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits', expMap='/scratch/kocevski/886091/expmap_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.fits', expCube='/scratch/kocevski/886091/ltcube_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/886091/Model_4FGL_J1559.9+2319_daily_bin1018.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1559.9+2319'

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  2.531e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.256e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/886091/ft1_filtered_4FGL_J1559.9+2319_daily_bin1018.fits
Spacecraft file(s): /scratch/kocevski/886091/ft2_4FGL_J1559.9+2319_daily_bin1018.fits
Exposure map: /scratch/kocevski/886091/expmap_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.fits
Exposure cube: /scratch/kocevski/886091/ltcube_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/886091/Model_4FGL_J1559.9+2319_daily_bin1018.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) = 5838.29566819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1903       1.0000         .10000E-03   10000.    
     4 'Prefactor '    180.01       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.593       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82252E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    21.049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0855       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.756       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .74715       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94706       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5838.291     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1791 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2837        153.30        .31205E-04   -.26259E-04
   2  Prefactor     .10000E-03    3.1999        .65818E-07** at limit **
   3  norm          1.1902        1.1736        .23085E-06   -.61331E-04
   4  Prefactor     180.01        66.313       -.25597E-05    .10329E-03
   5  Prefactor     .10000E-03    3.9287        .14085E-07** at limit **
   6  Prefactor     .10000E-03    14.955        .35925E-06** at limit **
   7  Prefactor     .10000E-03    .87106        .21958E-07** at limit **
   8  Prefactor     28.658        38.713        .20196E-04    .18974E-03
   9  norm          1.2809        3.0829       -.23642E-05   -.71831E-03
  10  Prefactor     .10063E-03    43.289       -.94730E-05** at limit **
  11  norm          21.052        12.619        .82429E-05   -.16892E-03
  12  Prefactor     23.534        15.863        .87972E-05   -.37119E-03
  13  Prefactor     .10000E-03    1.7545        .17063E-06** at limit **
  14  Prefactor     8.1071        17.797       -.27832E-05   -.16044E-04
  15  Prefactor     44.753        29.596        .38763E-05   -.83716E-04
  16  Prefactor     .10000E-03    6.8368        .23859E-06** at limit **
  17  Normalizat    .74710        .22317       -.67152E-05    .20724E-03
  18  Prefactor     .94710        .12193       -.13187E-05    .58097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.28367
  Prefactor  = 0.0001
  norm       = 1.19022
  Prefactor  = 180.01
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6577
  norm       = 1.28093
  Prefactor  = 0.000100634
  norm       = 21.0521
  Prefactor  = 23.5343
  Prefactor  = 0.0001
  Prefactor  = 8.10706
  Prefactor  = 44.7534
  Prefactor  = 0.0001
  Normalizat = 0.747098
  Prefactor  = 0.947097
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.291     FROM HESSE     STATUS=OK           248 CALLS     2039 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2837        151.86        .19531E-03   -1.5294    
   2  Prefactor     .10000E-03    3.2056        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1902        1.1746        .41754E-04   -1.5490    
   4  Prefactor     180.01        66.254        .30086E-04   -1.3016    
   5  Prefactor     .10000E-03    3.9408        .14786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .87499        .69611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.658        39.693        .74923E-04   -1.4637    
   9  norm          1.2809        3.0475        .19144E-03   -1.5482    
  10  Prefactor     .10063E-03    44.270        .13676       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          21.052        12.604        .87302E-04   -1.4790    
  12  Prefactor     23.534        15.728        .82560E-04   -1.4737    
  13  Prefactor     .10000E-03    1.7650        .98814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1071        17.794        .14100E-03   -1.5138    
  15  Prefactor     44.753        29.540        .59929E-04   -1.4369    
  16  Prefactor     .10000E-03    6.8997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .74710        .25712        .35055E-03   -1.0206    
  18  Prefactor     .94710        .14214        .17837E-03   -.94514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55157e-09
Minuit parameter uncertainties:
  1  51.1504
  2  8.16279e-06
  3  1.17458
  4  66.2818
  5  1.69112e-05
  6  1.84593e-05
  7  3.26033e-06
  8  39.73
  9  3.04786
  10  0.0106016
  11  12.6051
  12  15.7307
  13  1.11108e-05
  14  17.8055
  15  29.5493
  16  1.63397e-05
  17  0.257539
  18  0.142198
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  2.353e+01  1.573e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.256e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.471e-01  1.422e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  7.471e-01  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.74
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 8.27e-08 +/- 5.52e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 2.25e-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) = 5838.04873229
delta logL = 0.242292292484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5838.03356638
delta logL = 0.25745820652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.569       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7451       1.0000          .0000       10.000    
     3 'Normalizat'    .69064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5838.034     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      281 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.567        22.234        .10494E-03   -.49977E-03
   2  Index         2.7451        .93686        .40947E-02   -.20904E-03
   3  Normalizat    .69065        .26817        .36309E-03   -.48751E-04
   4  Prefactor     .96414        .14544        .17686E-03   -.32075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5675
  Index      = 2.74507
  Normalizat = 0.690652
  Prefactor  = 0.964137
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.034     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.567        17.200        .41974E-05   -1.4944    
   2  Index         2.7451        .72517        .16379E-03   -.46787    
   3  Normalizat    .69065        .26062        .14524E-04   -1.0426    
   4  Prefactor     .96414        .14311        .35372E-04   -.93935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20443e-10
Minuit parameter uncertainties:
  1  17.2062
  2  0.728398
  3  0.261086
  4  0.143162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886091': 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) = 5838.03356637
delta logL = 0.257458216035

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.457e+01  1.721e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.745e+00  7.284e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.641e-01  1.432e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  6.907e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 239.978 23.320
Photon Index (Free Index): 2.75 +/- 0.73
Photon Flux (Free Index): 1.38e-07 +/- 1.03e-07
Energy Flux (Free Index): 3.21e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/886091/cmap_HighResolution_503193601_503452801_4FGL_J1559.9+2319_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.27e-08', energy_flux2='3.21e-05', photon_flux_error='5.52e-08', dlogl='2.57e-01', energy_flux='3.36e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-12 23:46:15.016336', photon_index_error2='0.73', photon_index2='2.75', ts='4.74', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.75', time_epoch_completed='1631515575.02', return_code='0', job_id='886091', GAL2='0.96', EG2='0.69', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='1.03e-07', ts2='5.28', photon_index='2.26' WHERE bin_id='1018' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:46:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 886091: <4FGL_J1559.9+2319_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1018> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 23:30:45 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 23:35:35 2021
Terminated at Sun Sep 12 23:46:15 2021
Results reported at Sun Sep 12 23:46:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1018 239.978 23.3196 503193601 503452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1559.9+2319 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   507.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            930 sec.

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

