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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1380
RA = 239.978, Dec = 23.3196
tmin = 597024001, tmax = 597283201
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='889058', job_status='RUN', time_executed='2021-09-12 23:45:15.672486', time_epoch_executed='1631515515.67' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889058

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889058/ft1_4FGL_J1559.9+2319_daily_bin1380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889058/ft2_4FGL_J1559.9+2319_daily_bin1380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889058/ft1_4FGL_J1559.9+2319_daily_bin1380.fits outfile=/scratch/kocevski/889058/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1380.fits ra=239.978 dec=23.3196 rad=12.0 tmin=597024001.0 tmax=597283201.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.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889058/ft1_filtered_4FGL_J1559.9+2319_daily_bin1380.fits" evtable="EVENTS" scfile=/scratch/kocevski/889058/ft2_4FGL_J1559.9+2319_daily_bin1380.fits sctable="SC_DATA" outfile=/scratch/kocevski/889058/ltcube_597024001_597283201_4FGL_J1559.9+2319_daily_bin1380.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/889058/ft2_4FGL_J1559.9+2319_daily_bin1380.fits
.....................!
real 14.53
user 14.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889058/ft1_filtered_4FGL_J1559.9+2319_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/889058/ft2_4FGL_J1559.9+2319_daily_bin1380.fits sctable="SC_DATA" expcube=/scratch/kocevski/889058/ltcube_597024001_597283201_4FGL_J1559.9+2319_daily_bin1380.fits outfile=/scratch/kocevski/889058/expmap_597024001_597283201_4FGL_J1559.9+2319_daily_bin1380.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/889058/ltcube_597024001_597283201_4FGL_J1559.9+2319_daily_bin1380.fits
.....................!
real 191.97
user 186.15
sys 5.15

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/889058/ft1_filtered_4FGL_J1559.9+2319_daily_bin1380.fits scfile=/scratch/kocevski/889058/ft2_4FGL_J1559.9+2319_daily_bin1380.fits outfile=/scratch/kocevski/889058/cmap_597024001_597283201_4FGL_J1559.9+2319_daily_bin1380.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/889058/ft1_filtered_4FGL_J1559.9+2319_daily_bin1380.fits scfile=/scratch/kocevski/889058/ft2_4FGL_J1559.9+2319_daily_bin1380.fits outfile=/scratch/kocevski/889058/cmap_HighResolution_597024001_597283201_4FGL_J1559.9+2319_daily_bin1380.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .57040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .99340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7328       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .45701       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1421       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=   6093.370     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1541 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.531        .90712E-02** at limit **
   2  Prefactor     .10000E-03    3.3587        .90712E-02** at limit **
   3  norm          .57041        1.0040        .19960E-01    .76463E-03
   4  Prefactor     16.310        30.027        .24787E-02    .13387E-02
   5  Prefactor     .10000E-03    3.1412        .90712E-02** at limit **
   6  Prefactor     .10000E-03    12.922        .90712E-02** at limit **
   7  Prefactor     .71037        1.9503        .12102E-01    .13577E-02
   8  Prefactor     .10000E-03    110.88        .90712E-02** at limit **
   9  norm          2.5913        2.0392        .63372E-02    .64951E-04
  10  Prefactor     .10000E-03    12.975        .90712E-02** at limit **
  11  norm          .99407        5.3701        .98561E-01    .30106E-03
  12  Prefactor     21.797        10.341        .21448E-02   -.99900E-04
  13  Prefactor     2.7329        3.4683        .61578E-02    .51788E-03
  14  Prefactor     .10000E-03    10.481        .90712E-02** at limit **
  15  Prefactor     13.339        14.752        .27415E-02   -.11972E-02
  16  Prefactor     .10000E-03    2.0208        .90712E-02** at limit **
  17  Normalizat    .45705        .20834        .87136E-01    .70276E-04
  18  Prefactor     1.1421        .12376        .36170E-01    .30203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.570412
  Prefactor  = 16.3105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.710373
  Prefactor  = 0.000100001
  norm       = 2.59128
  Prefactor  = 0.0001
  norm       = 0.994067
  Prefactor  = 21.7971
  Prefactor  = 2.73295
  Prefactor  = 0.0001
  Prefactor  = 13.339
  Prefactor  = 0.0001
  Normalizat = 0.457046
  Prefactor  = 1.14208
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.370     FROM HESSE     STATUS=OK           246 CALLS     1787 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3732        .13968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .57041        .83137        .99206E-03   -1.5557    
   4  Prefactor     16.310        29.993        .99148E-04   -1.4900    
   5  Prefactor     .10000E-03    3.1581        .13490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .71037        1.9276        .17018E-03   -1.5539    
   8  Prefactor     .10000E-03    115.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5913        2.0378        .95638E-04   -1.5386    
  10  Prefactor     .10000E-03    12.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99407        24.393        .34022E-02   -1.5509    
  12  Prefactor     21.797        10.337        .85792E-04   -1.4774    
  13  Prefactor     2.7329        3.4533        .15717E-03   -1.5377    
  14  Prefactor     .10000E-03    10.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.339        14.724        .10966E-03   -1.4977    
  16  Prefactor     .10000E-03    2.0268        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .45705        .22327        .38602E-03   -1.1445    
  18  Prefactor     1.1421        .13615        .15672E-03   -.88133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71741e-08
Minuit parameter uncertainties:
  1  5.3031e-05
  2  4.55394e-07
  3  0.831385
  4  30.0206
  5  4.38533e-06
  6  7.538e-05
  7  1.9278
  8  0.000483046
  9  2.03785
  10  6.56549e-05
  11  9.85248
  12  10.3377
  13  3.4536
  14  3.3774e-05
  15  14.7277
  16  8.77992e-07
  17  0.223705
  18  0.136194
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  2.180e+01  1.034e+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:  1.142e+00  1.362e-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:  4.570e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.83
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 7.66e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.48e-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) = 6093.08761681
delta logL = 0.281996981766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6093.08678263
delta logL = 0.282831158538

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.367       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9711       1.0000          .0000       10.000    
     3 'Normalizat'    .47239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1363       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=   6093.087     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      306 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.373        17.780        .72708E-04    .30021E-04
   2  Index         1.9713        .36426        .50062E-02    .33454E-03
   3  Normalizat    .47237        .21611        .38003E-03   -.21808E-04
   4  Prefactor     1.1363        .13536        .15706E-03    .67172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.373
  Index      = 1.97133
  Normalizat = 0.472371
  Prefactor  = 1.13627
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.087     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.373        17.459        .29083E-05   -1.4605    
   2  Index         1.9713        .35764        .10012E-02   -.65069    
   3  Normalizat    .47237        .21614        .15201E-04   -1.1371    
   4  Prefactor     1.1363        .13540        .62825E-05   -.88316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50844e-11
Minuit parameter uncertainties:
  1  17.4617
  2  0.358128
  3  0.21652
  4  0.135441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889058': 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) = 6093.08678221
delta logL = 0.282831584082

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  3.037e+01  1.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.971e+00  3.581e-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.136e+00  1.354e-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:  4.724e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.39
Ra Dec: 239.978 23.320
Photon Index (Free Index): 1.97 +/- 0.36
Photon Flux (Free Index): 6.39e-08 +/- 3.55e-08
Energy Flux (Free Index): 4.75e-05 +/- 3.75e-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/889058/cmap_HighResolution_597024001_597283201_4FGL_J1559.9+2319_daily_bin1380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.66e-08', energy_flux2='4.75e-05', photon_flux_error='3.63e-08', dlogl='2.83e-01', energy_flux='3.11e-05', photon_flux2='6.39e-08', job_status='DONE', time_completed='2021-09-12 23:53:56.424791', photon_index_error2='0.36', photon_index2='1.97', ts='9.83', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.75e-05', EG='0.46', time_epoch_completed='1631516036.42', return_code='0', job_id='889058', GAL2='1.14', EG2='0.47', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.55e-08', ts2='10.39', photon_index='2.26' WHERE bin_id='1380' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:53:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 889058: <4FGL_J1559.9+2319_daily_bin1380> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1380> 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) <bullet0213>, 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:53:57 2021
Results reported at Sun Sep 12 23:53:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1380 239.978 23.3196 597024001 597283201 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 :                                   505.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            819 sec.

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

