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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin864
RA = 239.978, Dec = 23.3196
tmin = 463276801, tmax = 463536001
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='885868', job_status='RUN', time_executed='2021-09-12 23:32:21.818679', time_epoch_executed='1631514741.82' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='864'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885868

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885868/ft1_4FGL_J1559.9+2319_daily_bin864.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885868/ft1_4FGL_J1559.9+2319_daily_bin864.fits outfile=/scratch/kocevski/885868/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin864.fits ra=239.978 dec=23.3196 rad=12.0 tmin=463276801.0 tmax=463536001.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.68
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885868/ft1_filtered_4FGL_J1559.9+2319_daily_bin864.fits" evtable="EVENTS" scfile=/scratch/kocevski/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits sctable="SC_DATA" outfile=/scratch/kocevski/885868/ltcube_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.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/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits
.....................!
real 13.97
user 13.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885868/ft1_filtered_4FGL_J1559.9+2319_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits sctable="SC_DATA" expcube=/scratch/kocevski/885868/ltcube_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.fits outfile=/scratch/kocevski/885868/expmap_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.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/885868/ltcube_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.fits
.....................!
real 191.65
user 186.50
sys 4.60

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/885868/ft1_filtered_4FGL_J1559.9+2319_daily_bin864.fits scfile=/scratch/kocevski/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits outfile=/scratch/kocevski/885868/cmap_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885868/ft1_filtered_4FGL_J1559.9+2319_daily_bin864.fits scfile=/scratch/kocevski/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits outfile=/scratch/kocevski/885868/cmap_HighResolution_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.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.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/885868/ft1_filtered_4FGL_J1559.9+2319_daily_bin864.fits', '/scratch/kocevski/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits', expMap='/scratch/kocevski/885868/expmap_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.fits', expCube='/scratch/kocevski/885868/ltcube_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/885868/Model_4FGL_J1559.9+2319_daily_bin864.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/885868/ft1_filtered_4FGL_J1559.9+2319_daily_bin864.fits
Spacecraft file(s): /scratch/kocevski/885868/ft2_4FGL_J1559.9+2319_daily_bin864.fits
Exposure map: /scratch/kocevski/885868/expmap_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.fits
Exposure cube: /scratch/kocevski/885868/ltcube_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/885868/Model_4FGL_J1559.9+2319_daily_bin864.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) = 8021.51768084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.115       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2906       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8445       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .93897       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1037       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=   8021.517     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1729 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.116        49.750        .12936E-05   -.63795E-05
   2  Prefactor     .10000E-03    2.3060       -.14641E-06** at limit **
   3  norm          3.4736        2.1990        .13493E-06    .11855E-02
   4  Prefactor     37.956        39.180       -.21494E-05   -.32300E-04
   5  Prefactor     1.2429        22.672       -.27875E-05   -.17802E-03
   6  Prefactor     .10000E-03    65.827       -.79101E-04** at limit **
   7  Prefactor     .10000E-03    1.0789       -.15970E-06** at limit **
   8  Prefactor     .10000E-03    25.402       -.60019E-05** at limit **
   9  norm          4.6137        2.6469       -.78564E-07   -.60476E-03
  10  Prefactor     .10000E-03    51.951        .69049E-04** at limit **
  11  norm          12.145        9.2867       -.27021E-06   -.20744E-03
  12  Prefactor     9.2907        7.3875       -.19758E-05   -.18042E-04
  13  Prefactor     3.5723        2.9561       -.11581E-06    .29227E-04
  14  Prefactor     8.6734        9.5282       -.23772E-06   -.73680E-04
  15  Prefactor     .10000E-03    17.502        .77669E-06** at limit **
  16  Prefactor     9.8444        7.8752        .22506E-05   -.98539E-04
  17  Normalizat    .93895        .21474        .80458E-07    .42227E-05
  18  Prefactor     1.1037        .11986       -.49609E-07   -.11653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1157
  Prefactor  = 0.0001
  norm       = 3.47358
  Prefactor  = 37.9558
  Prefactor  = 1.24295
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61374
  Prefactor  = 0.0001
  norm       = 12.1445
  Prefactor  = 9.29073
  Prefactor  = 3.57225
  Prefactor  = 8.67344
  Prefactor  = 0.0001
  Prefactor  = 9.84438
  Normalizat = 0.938952
  Prefactor  = 1.10365
 **********
 **   18 **HESSE 
 **********

 FCN=   8021.517     FROM HESSE     STATUS=OK           246 CALLS     1975 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.116        49.762        .60361E-04   -1.4379    
   2  Prefactor     .10000E-03    2.3079        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4736        2.1136        .87459E-04   -1.5335    
   4  Prefactor     37.956        39.202        .65054E-04   -1.4475    
   5  Prefactor     1.2429        21.190        .40180E-03   -1.5485    
   6  Prefactor     .10000E-03    65.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0964        .90764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6137        2.6452        .10579E-03   -1.5278    
  10  Prefactor     .10000E-03    52.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.145        9.2778        .11495E-03   -1.5011    
  12  Prefactor     9.2907        7.3892        .13148E-03   -1.5098    
  13  Prefactor     3.5723        2.9617        .13588E-03   -1.5330    
  14  Prefactor     8.6734        9.5259        .13611E-03   -1.5119    
  15  Prefactor     .10000E-03    17.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.8444        7.8680        .12771E-03   -1.5080    
  17  Normalizat    .93895        .24930        .34934E-03   -.95105    
  18  Prefactor     1.1037        .14024        .18691E-03   -.89350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75482e-10
Minuit parameter uncertainties:
  1  49.8085
  2  1.4278e-06
  3  2.11366
  4  39.2282
  5  10.2679
  6  0.000523387
  7  5.36829e-06
  8  2.24702e-05
  9  2.64528
  10  0.000271924
  11  9.27887
  12  7.38993
  13  2.96186
  14  9.52761
  15  6.94049e-05
  16  7.86884
  17  0.249603
  18  0.140291
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  9.291e+00  7.390e+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

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.104e+00  1.403e-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:  9.390e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.05
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.06e-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) = 8020.28173761
delta logL = 1.23554855627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8020.27453488
delta logL = 1.24275128764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2943       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3378       1.0000          .0000       10.000    
     3 'Normalizat'    .95113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1047       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.

 FCN=   8020.274     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4810        8.8307        .32864E-02   -.80084E-03
   2  Index         1.3447        .41411        .27373       -.65799E-04
   3  Normalizat    .95116        .20558        .78470E-01    .21162E-04
   4  Prefactor     1.1046        .11885        .37410E-01   -.72394E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.48101
  Index      = 1.34468
  Normalizat = 0.951165
  Prefactor  = 1.10461
 **********
 **   18 **HESSE 
 **********

 FCN=   8020.274     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4810        11.212        .65729E-03   -1.5092    
   2  Index         1.3447        .60707        .10443E-01   -.81988    
   3  Normalizat    .95116        .23954        .34731E-03   -.94685    
   4  Prefactor     1.1046        .13899        .18688E-03   -.89319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53241e-11
Minuit parameter uncertainties:
  1  11.2148
  2  0.610317
  3  0.239807
  4  0.139033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885868': 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) = 8020.27440414
delta logL = 1.24288203338

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  9.481e+00  1.121e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.345e+00  6.103e-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:  1.105e+00  1.390e-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:  9.512e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.53
Ra Dec: 239.978 23.320
Photon Index (Free Index): 1.34 +/- 0.61
Photon Flux (Free Index): 9.41e-09 +/- 1.31e-08
Energy Flux (Free Index): 4.99e-05 +/- 6.53e-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/885868/cmap_HighResolution_463276801_463536001_4FGL_J1559.9+2319_daily_bin864.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='4.99e-05', photon_flux_error='2.59e-08', dlogl='1.24e+00', energy_flux='1.33e-05', photon_flux2='9.41e-09', job_status='DONE', time_completed='2021-09-12 23:41:47.041248', photon_index_error2='0.61', photon_index2='1.34', ts='8.05', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='6.53e-05', EG='0.94', time_epoch_completed='1631515307.04', return_code='0', job_id='885868', GAL2='1.10', EG2='0.95', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.31e-08', ts2='10.53', photon_index='2.26' WHERE bin_id='864' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:41:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 885868: <4FGL_J1559.9+2319_daily_bin864> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin864> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 23:30:29 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:32:07 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:32:07 2021
Terminated at Sun Sep 12 23:41:47 2021
Results reported at Sun Sep 12 23:41:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin864 239.978 23.3196 463276801 463536001 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   580 sec.
    Turnaround time :                            678 sec.

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

