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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin834
RA = 239.978, Dec = 23.3196
tmin = 455500801, tmax = 455760001
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='885823', job_status='RUN', time_executed='2021-09-12 23:31:52.312644', time_epoch_executed='1631514712.31' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='834'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885823/ft1_4FGL_J1559.9+2319_daily_bin834.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885823/ft2_4FGL_J1559.9+2319_daily_bin834.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885823/ft1_4FGL_J1559.9+2319_daily_bin834.fits outfile=/scratch/kocevski/885823/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin834.fits ra=239.978 dec=23.3196 rad=12.0 tmin=455500801.0 tmax=455760001.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.43
user 3.17
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885823/ft1_filtered_4FGL_J1559.9+2319_daily_bin834.fits evtable="EVENTS" scfile=/scratch/kocevski/885823/ft2_4FGL_J1559.9+2319_daily_bin834.fits sctable="SC_DATA" expcube=/scratch/kocevski/885823/ltcube_455500801_455760001_4FGL_J1559.9+2319_daily_bin834.fits outfile=/scratch/kocevski/885823/expmap_455500801_455760001_4FGL_J1559.9+2319_daily_bin834.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/885823/ltcube_455500801_455760001_4FGL_J1559.9+2319_daily_bin834.fits
.....................!
real 191.78
user 186.49
sys 4.42

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/885823/ft1_filtered_4FGL_J1559.9+2319_daily_bin834.fits scfile=/scratch/kocevski/885823/ft2_4FGL_J1559.9+2319_daily_bin834.fits outfile=/scratch/kocevski/885823/cmap_455500801_455760001_4FGL_J1559.9+2319_daily_bin834.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=239.978 yref=23.3196 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885823/ft1_filtered_4FGL_J1559.9+2319_daily_bin834.fits scfile=/scratch/kocevski/885823/ft2_4FGL_J1559.9+2319_daily_bin834.fits outfile=/scratch/kocevski/885823/cmap_HighResolution_455500801_455760001_4FGL_J1559.9+2319_daily_bin834.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4525       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.602       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.606       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .78590E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9456       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2585       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .74548       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=   6989.577     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1522 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4801        249.49        .17656E-03   -.67440E-04
   2  Prefactor     .10000E-03    9.0156       -.49103E-05** at limit **
   3  norm          10.638        2.6409        .11036E-06   -.13670E-03
   4  Prefactor     38.999        31.426        .40127E-04   -.17020E-03
   5  Prefactor     3.1338        7.3586       -.26020E-06   -.31109E-03
   6  Prefactor     .10000E-03    10.764        .44574E-06** at limit **
   7  Prefactor     .10000E-03    .72975        .85947E-08** at limit **
   8  Prefactor     40.591        30.243       -.13778E-04   -.20529E-03
   9  norm          1.7223        2.0232        .29680E-07   -.60594E-03
  10  Prefactor     .10000E-03    8.5953        .43971E-05** at limit **
  11  norm          11.603        9.4000        .76934E-06   -.14423E-03
  12  Prefactor     .10026E-03    5.7101        .37629E-05** at limit **
  13  Prefactor     1.9450        3.1587       -.98762E-06   -.80628E-03
  14  Prefactor     .10000E-03    3.8365        .81900E-07** at limit **
  15  Prefactor     4.3040        12.797        .88079E-06   -.10602E-03
  16  Prefactor     .10000E-03    2.6977        .77810E-07** at limit **
  17  Normalizat    1.2587        .19766       -.28768E-05   -.86165E-03
  18  Prefactor     .74547        .11117       -.22554E-05   -.11443E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48015
  Prefactor  = 0.0001
  norm       = 10.6383
  Prefactor  = 38.9992
  Prefactor  = 3.13384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5909
  norm       = 1.72226
  Prefactor  = 0.0001
  norm       = 11.6032
  Prefactor  = 0.000100261
  Prefactor  = 1.94498
  Prefactor  = 0.0001
  Prefactor  = 4.304
  Prefactor  = 0.0001
  Normalizat = 1.25868
  Prefactor  = 0.745466
 **********
 **   18 **HESSE 
 **********

 FCN=   6989.577     FROM HESSE     STATUS=OK           244 CALLS     1766 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4801        244.82        .35739E-03   -1.5465    
   2  Prefactor     .10000E-03    9.1704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.638        2.6365        .59721E-04   -1.5056    
   4  Prefactor     38.999        31.403        .32105E-03   -1.4458    
   5  Prefactor     3.1338        7.3146        .22901E-03   -1.5354    
   6  Prefactor     .10000E-03    10.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .73929        .69716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.591        30.352        .62907E-04   -1.4433    
   9  norm          1.7223        2.0044        .12429E-03   -1.5445    
  10  Prefactor     .10000E-03    8.6010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.603        9.3885        .11759E-03   -1.5027    
  12  Prefactor     .10026E-03    29.895        .38380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9450        3.1587        .18191E-03   -1.5429    
  14  Prefactor     .10000E-03    3.8549        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3040        12.782        .19413E-03   -1.5293    
  16  Prefactor     .10000E-03    2.7162        .13407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2587        .23864        .26936E-03   -.84808    
  18  Prefactor     .74547        .13441        .19619E-03   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83506e-09
Minuit parameter uncertainties:
  1  38.2303
  2  4.62952e-05
  3  2.63657
  4  31.4166
  5  7.3167
  6  1.02103e-05
  7  4.43605e-06
  8  30.3638
  9  2.00444
  10  2.4483e-05
  11  9.38968
  12  0.00558742
  13  3.159
  14  1.78531e-05
  15  12.79
  16  1.65479e-05
  17  0.238844
  18  0.134469
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.003e-04  5.587e-03  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:  7.455e-01  1.345e-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.259e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/885823/likelihoodResults_455500801_455760001_4FGL_J1559.9+2319_daily_bin834.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): 102
logL (Free Index) = 6989.57728022
delta logL = -0.000156971897923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6989.57712308
delta logL = 1.71884494193e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97982E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3805       1.0000          .0000       10.000    
     3 'Normalizat'    1.2590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74530       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6989.546     FROM MIGRAD    STATUS=FAILED       171 CALLS      349 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44837        11.826        .21786E-03   -.13187E-03
   2  Index         3.1016        3.5028        .11923E-01    .18559E-03
   3  Normalizat    1.2505        .23109        .27013E-03   -.75292E-04
   4  Prefactor     .74661        .13268        .19604E-03   -.83854E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6989.546     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      438 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44837        11.826        .18285E-03   -1.5574    
   2  Index         3.1016        3.5028        .19699E-02   -.38946    
   3  Normalizat    1.2505        .23109        .21782E-03   -.85057    
   4  Prefactor     .74661        .13268        .19935E-03   -1.0173    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6989.546     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      467 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44836        4.5041        .87143E-05   -.10045E-03
   2  Index         3.1016        2.3411        .23846E-02   -.40476E-05
   3  Normalizat    1.2505        .23141        .10805E-04   -.34090E-04
   4  Prefactor     .74661        .13272        .78418E-05   -.37694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.448365
  Index      = 3.10158
  Normalizat = 1.25048
  Prefactor  = 0.746609
 **********
 **   18 **HESSE 
 **********

 FCN=   6989.546     FROM HESSE     STATUS=OK            23 CALLS      490 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44836        4.0842        .17429E-05   -1.5574    
   2  Index         3.1016        2.2387        .95385E-04   -.38945    
   3  Normalizat    1.2505        .23138        .21610E-05   -.85057    
   4  Prefactor     .74661        .13269        .15684E-05   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28778e-12
Minuit parameter uncertainties:
  1  2.70638
  2  2.33686
  3  0.231569
  4  0.132745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885823': 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) = 6989.54577666
delta logL = 0.031346587738

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  4.484e-01  2.706e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.102e+00  2.337e+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:  7.466e-01  1.327e-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.250e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 239.978 23.320

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/885823/cmap_HighResolution_455500801_455760001_4FGL_J1559.9+2319_daily_bin834.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-12 23:41:46.418957', job_id='885823', GAL2='0.75', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1631515306.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.13e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='834' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:41:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 885823: <4FGL_J1559.9+2319_daily_bin834> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin834> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 23:30:26 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:31:36 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:31:36 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_bin834 239.978 23.3196 455500801 455760001 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 :                                   590.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            681 sec.

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

