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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1382
RA = 239.978, Dec = 23.3196
tmin = 597542401, tmax = 597801601
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='889061', job_status='RUN', time_executed='2021-09-12 23:45:17.173788', time_epoch_executed='1631515517.17' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889061/ft1_4FGL_J1559.9+2319_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889061/ft2_4FGL_J1559.9+2319_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889061/ft1_4FGL_J1559.9+2319_daily_bin1382.fits outfile=/scratch/kocevski/889061/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1382.fits ra=239.978 dec=23.3196 rad=12.0 tmin=597542401.0 tmax=597801601.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.59
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889061/ft2_4FGL_J1559.9+2319_daily_bin1382.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/889061/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1382.fits evtable="EVENTS" outfile="/scratch/kocevski/889061/ft1_filtered_4FGL_J1559.9+2319_daily_bin1382.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889061/ft1_filtered_4FGL_J1559.9+2319_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/889061/ft2_4FGL_J1559.9+2319_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/889061/ltcube_597542401_597801601_4FGL_J1559.9+2319_daily_bin1382.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/889061/ft2_4FGL_J1559.9+2319_daily_bin1382.fits
.....................!
real 14.44
user 14.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889061/ft1_filtered_4FGL_J1559.9+2319_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/889061/ft2_4FGL_J1559.9+2319_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/889061/ltcube_597542401_597801601_4FGL_J1559.9+2319_daily_bin1382.fits outfile=/scratch/kocevski/889061/expmap_597542401_597801601_4FGL_J1559.9+2319_daily_bin1382.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/889061/ltcube_597542401_597801601_4FGL_J1559.9+2319_daily_bin1382.fits
.....................!
real 194.03
user 187.64
sys 5.47

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/889061/ft1_filtered_4FGL_J1559.9+2319_daily_bin1382.fits scfile=/scratch/kocevski/889061/ft2_4FGL_J1559.9+2319_daily_bin1382.fits outfile=/scratch/kocevski/889061/cmap_597542401_597801601_4FGL_J1559.9+2319_daily_bin1382.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889061/ft1_filtered_4FGL_J1559.9+2319_daily_bin1382.fits scfile=/scratch/kocevski/889061/ft2_4FGL_J1559.9+2319_daily_bin1382.fits outfile=/scratch/kocevski/889061/cmap_HighResolution_597542401_597801601_4FGL_J1559.9+2319_daily_bin1382.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8148       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1212       1.0000         .10000E-03   10000.    
     4 'Prefactor '    106.21       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.199       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2695       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5914       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3400       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.895       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .85583       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0632       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7247.864     FROM MIGRAD    STATUS=CONVERGED     44 CALLS     1454 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    15.473       -.12172E-05** at limit **
   2  Prefactor     8.8159        1.0169       -.89690E-07    .99916E-03
   3  norm          1.1218        1.3045        .16073E-05    .29740E-03
   4  Prefactor     106.21        1.0393       -.43826E-07    .71170E-02
   5  Prefactor     .10000E-03    8.3819       -.83031E-06** at limit **
   6  Prefactor     28.570        1.1044        .14013E-06   -.60045E-02
   7  Prefactor     .22032        2.1286       -.16499E-05   -.34994E-03
   8  Prefactor     10.193        1.3143       -.42129E-06    .65618E-02
   9  norm          5.2693        2.9925        .18490E-05    .33034E-02
  10  Prefactor     .10069E-03    15.216       -.27388E-05** at limit **
  11  norm          20.276        1.0178        .63317E-07   -.52564E-04
  12  Prefactor     7.7750        1.0039        .32904E-07   -.38414E-03
  13  Prefactor     6.5923        1.3876       -.59199E-06    .21843E-02
  14  Prefactor     4.3388        1.0122        .66074E-07   -.49265E-03
  15  Prefactor     44.896        1.0115        .33709E-07   -.22216E-02
  16  Prefactor     .10000E-03    3.3292       -.16001E-06** at limit **
  17  Normalizat    .85557        .24320        .20650E-06   -.43739E-04
  18  Prefactor     1.0634        .14487       -.21735E-05   -.99363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100735
  Prefactor  = 8.81595
  norm       = 1.12181
  Prefactor  = 106.208
  Prefactor  = 0.0001
  Prefactor  = 28.5699
  Prefactor  = 0.220317
  Prefactor  = 10.1926
  norm       = 5.26925
  Prefactor  = 0.000100686
  norm       = 20.2759
  Prefactor  = 7.77498
  Prefactor  = 6.59228
  Prefactor  = 4.33882
  Prefactor  = 44.8962
  Prefactor  = 0.0001
  Normalizat = 0.855571
  Prefactor  = 1.06337
 **********
 **   18 **HESSE 
 **********

 FCN=   7247.864     FROM HESSE     STATUS=OK           288 CALLS     1742 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    29.820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8159        8.0669        .33751E-02   -1.5114    
   3  norm          1.1218        1.4910        .23420E-01   -1.5496    
   4  Prefactor     106.21        51.185        .97553E-03   -1.3643    
   5  Prefactor     .10000E-03    8.3159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.570        34.190        .18739E-02   -1.4638    
   7  Prefactor     .22032        2.0469        .10071E-01   -1.5614    
   8  Prefactor     10.193        29.717        .31367E-02   -1.5069    
   9  norm          5.2693        3.1375        .43774E-02   -1.5249    
  10  Prefactor     .10069E-03    30.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.276        10.538        .22237E-02   -1.4807    
  12  Prefactor     7.7750        6.9629        .35952E-02   -1.5150    
  13  Prefactor     6.5923        4.2050        .39077E-02   -1.5194    
  14  Prefactor     4.3388        9.4381        .48339E-02   -1.5291    
  15  Prefactor     44.896        18.034        .14959E-02   -1.4367    
  16  Prefactor     .10000E-03    3.2857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .85557        .22005        .77040E-01   -.98039    
  18  Prefactor     1.0634        .12427        .39192E-01   -.90646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58132e-07
Minuit parameter uncertainties:
  1  0.00936539
  2  8.06794
  3  1.4911
  4  51.2066
  5  1.89476e-05
  6  34.213
  7  1.34283
  8  29.7598
  9  3.1376
  10  0.00918821
  11  10.5388
  12  6.96366
  13  4.20515
  14  9.44131
  15  18.0359
  16  5.56217e-07
  17  0.220277
  18  0.124303
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  7.775e+00  6.964e+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.063e+00  1.243e-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:  8.556e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.65
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 9.95e-06

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) = 7247.1151649
delta logL = 0.748548744185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7247.10555399
delta logL = 0.758159658251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3241       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3930       1.0000          .0000       10.000    
     3 'Normalizat'    .87176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0612       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=   7247.106     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      228 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3259        9.6057        .13895E-03   -.37268E-03
   2  Index         1.3931        .66064        .11244E-01   -.16948E-03
   3  Normalizat    .87175        .23965        .33803E-03   -.69495E-03
   4  Prefactor     1.0612        .14389        .18430E-03   -.11377E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32586
  Index      = 1.39309
  Normalizat = 0.871751
  Prefactor  = 1.06116
 **********
 **   18 **HESSE 
 **********

 FCN=   7247.106     FROM HESSE     STATUS=OK            25 CALLS      253 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3259        9.7789        .55581E-05   -1.5131    
   2  Index         1.3931        .67255        .22488E-02   -.80580    
   3  Normalizat    .87175        .23983        .67607E-04   -.97460    
   4  Prefactor     1.0612        .14400        .36861E-04   -.90718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17008e-10
Minuit parameter uncertainties:
  1  9.78075
  2  0.676856
  3  0.240119
  4  0.144056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889061': 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) = 7247.10555397
delta logL = 0.758159678463

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  8.326e+00  9.781e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.393e+00  6.769e-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.061e+00  1.441e-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:  8.718e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.14
Ra Dec: 239.978 23.320
Photon Index (Free Index): 1.39 +/- 0.68
Photon Flux (Free Index): 8.50e-09 +/- 1.24e-08
Energy Flux (Free Index): 3.84e-05 +/- 5.91e-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/889061/cmap_HighResolution_597542401_597801601_4FGL_J1559.9+2319_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='3.84e-05', photon_flux_error='2.44e-08', dlogl='7.58e-01', energy_flux='1.11e-05', photon_flux2='8.50e-09', job_status='DONE', time_completed='2021-09-12 23:54:30.149951', photon_index_error2='0.68', photon_index2='1.39', ts='5.65', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.91e-05', EG='0.86', time_epoch_completed='1631516070.15', return_code='0', job_id='889061', GAL2='1.06', EG2='0.87', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='1.24e-08', ts2='7.14', photon_index='2.26' WHERE bin_id='1382' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:54:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 889061: <4FGL_J1559.9+2319_daily_bin1382> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1382> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 23:40:18 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:45:04 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:45:04 2021
Terminated at Sun Sep 12 23:54:30 2021
Results reported at Sun Sep 12 23:54:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1382 239.978 23.3196 597542401 597801601 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 :                                   538.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            852 sec.

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

