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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1363
RA = 239.978, Dec = 23.3196
tmin = 592617601, tmax = 592876801
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='889033', job_status='RUN', time_executed='2021-09-12 23:45:08.870252', time_epoch_executed='1631515508.87' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889033/ft1_4FGL_J1559.9+2319_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889033/ft2_4FGL_J1559.9+2319_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889033/ft1_4FGL_J1559.9+2319_daily_bin1363.fits outfile=/scratch/kocevski/889033/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1363.fits ra=239.978 dec=23.3196 rad=12.0 tmin=592617601.0 tmax=592876801.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.56
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889033/ft2_4FGL_J1559.9+2319_daily_bin1363.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/889033/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/889033/ft1_filtered_4FGL_J1559.9+2319_daily_bin1363.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.55
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889033/ft1_filtered_4FGL_J1559.9+2319_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/889033/ft2_4FGL_J1559.9+2319_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/889033/ltcube_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.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/889033/ft2_4FGL_J1559.9+2319_daily_bin1363.fits
.....................!
real 13.70
user 13.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889033/ft1_filtered_4FGL_J1559.9+2319_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/889033/ft2_4FGL_J1559.9+2319_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/889033/ltcube_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.fits outfile=/scratch/kocevski/889033/expmap_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.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/889033/ltcube_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.fits
.....................!
real 194.17
user 187.17
sys 5.39

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/889033/ft1_filtered_4FGL_J1559.9+2319_daily_bin1363.fits scfile=/scratch/kocevski/889033/ft2_4FGL_J1559.9+2319_daily_bin1363.fits outfile=/scratch/kocevski/889033/cmap_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889033/ft1_filtered_4FGL_J1559.9+2319_daily_bin1363.fits scfile=/scratch/kocevski/889033/ft2_4FGL_J1559.9+2319_daily_bin1363.fits outfile=/scratch/kocevski/889033/cmap_HighResolution_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97407E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0100       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4654       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9648       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3318       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.405       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .91094       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=   6870.946     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     1771 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.382        .13346    ** at limit **
   2  Prefactor     3.0090        7.9544        .23394E-03    .37225E-04
   3  norm          4.4666        1.8105        .68080E-04    .22894E-03
   4  Prefactor     .10000E-03    25.749        .18142E-02** at limit **
   5  Prefactor     .10000E-03    6.1532        .18142E-02** at limit **
   6  Prefactor     7.9673        24.565        .14207E-03   -.12643E-04
   7  Prefactor     1.3322        1.6077        .11306E-03    .25138E-04
   8  Prefactor     .10000E-03    20.930        .18142E-02** at limit **
   9  norm          5.6435        2.8547        .96124E-04    .18332E-04
  10  Prefactor     .10000E-03    11.200        .18142E-02** at limit **
  11  norm          15.406        8.6936        .10205E-03    .91355E-05
  12  Prefactor     6.9773        7.5365        .15189E-03    .21182E-04
  13  Prefactor     .10000E-03    1.2681        .90708E-03** at limit **
  14  Prefactor     .10000E-03    4.7609        .17622E-02** at limit **
  15  Prefactor     11.465        15.047        .11830E-03    .22294E-04
  16  Prefactor     .10000E-03    3.1652        .14347E-02** at limit **
  17  Normalizat    1.1041        .23638        .28970E-03    .15807E-03
  18  Prefactor     .91098        .13572        .18659E-03   -.24494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.00898
  norm       = 4.46665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.96731
  Prefactor  = 1.33223
  Prefactor  = 0.0001
  norm       = 5.64346
  Prefactor  = 0.0001
  norm       = 15.4058
  Prefactor  = 6.97728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4655
  Prefactor  = 0.0001
  Normalizat = 1.10413
  Prefactor  = 0.910977
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.946     FROM HESSE     STATUS=OK           236 CALLS     2007 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.660        .13554       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0090        7.9537        .93576E-05   -1.5361    
   3  norm          4.4666        1.8103        .27232E-05   -1.5285    
   4  Prefactor     .10000E-03    25.754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9673        24.565        .56829E-05   -1.5143    
   7  Prefactor     1.3322        1.6077        .45225E-05   -1.5477    
   8  Prefactor     .10000E-03    20.934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6435        2.8547        .38450E-05   -1.5233    
  10  Prefactor     .10000E-03    11.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.406        8.6934        .40818E-05   -1.4923    
  12  Prefactor     6.9773        7.5363        .60755E-05   -1.5180    
  13  Prefactor     .10000E-03    1.2682        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7617        .35245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.465        15.047        .47322E-05   -1.5031    
  16  Prefactor     .10000E-03    3.1657        .28694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1041        .23660        .11588E-04   -.89619    
  18  Prefactor     .91098        .13586        .74635E-05   -.95759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73128e-10
Minuit parameter uncertainties:
  1  0.00020005
  2  7.95648
  3  1.81033
  4  0.000133255
  5  1.68089e-06
  6  24.5962
  7  1.60775
  8  5.74652e-05
  9  2.85473
  10  1.23344e-05
  11  8.69414
  12  7.5373
  13  7.95043e-07
  14  5.64061e-06
  15  15.0525
  16  5.10361e-06
  17  0.236825
  18  0.135906
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  6.977e+00  7.537e+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:  9.110e-01  1.359e-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:  1.104e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 9.97e-06 +/- 1.08e-05

TS (Fixed Index): 1.41
Ra Dec: 239.978 23.320
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889033/likelihoodResults_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.txt

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) = 6870.85310405
delta logL = 0.0924574189921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6870.84142301
delta logL = 0.104138454722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0598       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7326       1.0000          .0000       10.000    
     3 'Normalizat'    1.0880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91625       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=   6870.841     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      260 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0543        82.358        .50028E-02    .38784E-03
   2  Index         2.7336        2.9553        .17745        .10724E-03
   3  Normalizat    1.0882        .60338E-01    .65901E-01    .18728E-04
   4  Prefactor     .91604        .32327E-01    .45212E-01    .25411E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05425
  Index      = 2.73364
  Normalizat = 1.08821
  Prefactor  = 0.916041
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.841     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0543        10.820        .15536E-03   -1.5305    
   2  Index         2.7336        1.5007        .61827E-02   -.47043    
   3  Normalizat    1.0882        .23275        .29153E-03   -.90131    
   4  Prefactor     .91604        .13604        .18611E-03   -.95583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49992e-11
Minuit parameter uncertainties:
  1  10.8251
  2  1.53065
  3  0.232964
  4  0.136086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889033': 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) = 6870.84142093
delta logL = 0.104140533422

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  4.054e+00  1.083e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.734e+00  1.531e+00  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.160e-01  1.361e-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:  1.088e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 239.978 23.320
Photon Index (Free Index): 2.73 +/- 1.53
Photon Flux (Free Index): 3.75e-08 +/- 4.61e-08
Energy Flux (Free Index): 8.79e-06 +/- 9.14e-06

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/889033/cmap_HighResolution_592617601_592876801_4FGL_J1559.9+2319_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='8.79e-06', photon_flux_error='2.65e-08', dlogl='1.04e-01', energy_flux='9.97e-06', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-12 23:55:34.415593', photon_index_error2='1.53', photon_index2='2.73', ts='1.41', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='9.14e-06', EG='1.10', time_epoch_completed='1631516134.42', return_code='0', job_id='889033', GAL2='0.92', EG2='1.09', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.61e-08', ts2='1.62', photon_index='2.26' WHERE bin_id='1363' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:55:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 889033: <4FGL_J1559.9+2319_daily_bin1363> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1363> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 23:40:17 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:44:57 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:44:57 2021
Terminated at Sun Sep 12 23:55:35 2021
Results reported at Sun Sep 12 23:55:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1363 239.978 23.3196 592617601 592876801 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 :                                   592.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            918 sec.

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

