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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin973
RA = 239.978, Dec = 23.3196
tmin = 491529601, tmax = 491788801
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='886025', job_status='RUN', time_executed='2021-09-12 23:36:58.197217', time_epoch_executed='1631515018.2' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886025/ft1_4FGL_J1559.9+2319_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886025/ft2_4FGL_J1559.9+2319_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886025/ft1_4FGL_J1559.9+2319_daily_bin973.fits outfile=/scratch/kocevski/886025/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin973.fits ra=239.978 dec=23.3196 rad=12.0 tmin=491529601.0 tmax=491788801.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.48
user 3.25
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886025/ft1_filtered_4FGL_J1559.9+2319_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/886025/ft2_4FGL_J1559.9+2319_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/886025/ltcube_491529601_491788801_4FGL_J1559.9+2319_daily_bin973.fits outfile=/scratch/kocevski/886025/expmap_491529601_491788801_4FGL_J1559.9+2319_daily_bin973.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/886025/ltcube_491529601_491788801_4FGL_J1559.9+2319_daily_bin973.fits
.....................!
real 190.87
user 185.97
sys 4.53

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886025/ft1_filtered_4FGL_J1559.9+2319_daily_bin973.fits scfile=/scratch/kocevski/886025/ft2_4FGL_J1559.9+2319_daily_bin973.fits outfile=/scratch/kocevski/886025/cmap_HighResolution_491529601_491788801_4FGL_J1559.9+2319_daily_bin973.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10932       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.999       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9949       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.927       1.0000         .10000E-03   10000.    
    11 'norm      '    15.757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6160       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41946       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0937       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .76499       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=   6573.001     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1804 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.643       -.17383E-06** at limit **
   2  Prefactor     .70414E-02    4.4685        .10669E-06   -.76523E-04
   3  norm          2.9661        1.6964        .15168E-07    .36710E-05
   4  Prefactor     .10000E-03    23.983        .35782E-06** at limit **
   5  Prefactor     12.618        8.7712       -.12896E-06    .71995E-05
   6  Prefactor     .10000E-03    8.0064       -.11618E-06** at limit **
   7  Prefactor     .10000E-03    .44712       -.40155E-07** at limit **
   8  Prefactor     49.924        43.231        .19354E-05    .23581E-04
   9  norm          1.9966        3.3937       -.87729E-06    .23248E-04
  10  Prefactor     20.934        35.331       -.66320E-06    .11148E-04
  11  norm          15.751        10.887        .14719E-06    .45321E-04
  12  Prefactor     3.6150        7.1612       -.86702E-06    .16382E-04
  13  Prefactor     2.6008        2.8096       -.21108E-06    .28387E-04
  14  Prefactor     .10000E-03    26.260       -.57472E-07** at limit **
  15  Prefactor     .10000E-03    5.8966       -.10370E-06** at limit **
  16  Prefactor     .42710        11.544        .23511E-05   -.73277E-05
  17  Normalizat    1.0939        .18976        .21562E-06    .98421E-04
  18  Prefactor     .76508        .10991        .44664E-06    .79625E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00704144
  norm       = 2.96609
  Prefactor  = 0.0001
  Prefactor  = 12.618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.9245
  norm       = 1.99663
  Prefactor  = 20.9341
  norm       = 15.7512
  Prefactor  = 3.61496
  Prefactor  = 2.60076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.427099
  Normalizat = 1.09387
  Prefactor  = 0.765084
 **********
 **   18 **HESSE 
 **********

 FCN=   6573.001     FROM HESSE     STATUS=OK           260 CALLS     2064 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .70414E-02    9.6436        .55020E-01   -1.5691    
   3  norm          2.9661        1.7011        .71847E-04   -1.5364    
   4  Prefactor     .10000E-03    24.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.618        8.8321        .11277E-03   -1.4997    
   6  Prefactor     .10000E-03    8.0070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .44858        .52944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.924        43.493        .56714E-04   -1.4294    
   9  norm          1.9966        3.3852        .17859E-03   -1.5425    
  10  Prefactor     20.934        35.279        .87557E-04   -1.4793    
  11  norm          15.751        10.844        .10090E-03   -1.4914    
  12  Prefactor     3.6150        7.1483        .21247E-03   -1.5328    
  13  Prefactor     2.6008        2.8135        .13663E-03   -1.5385    
  14  Prefactor     .10000E-03    27.157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .42710        11.587        .26080E-02   -1.5577    
  17  Normalizat    1.0939        .22649        .27060E-03   -.89949    
  18  Prefactor     .76508        .12920        .18509E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0773e-08
Minuit parameter uncertainties:
  1  3.86189e-05
  2  0.517541
  3  1.70108
  4  4.2398e-05
  5  8.83302
  6  4.58461e-07
  7  1.31805e-07
  8  43.5208
  9  3.38549
  10  35.3136
  11  10.8458
  12  7.14995
  13  2.81365
  14  6.95395e-05
  15  3.42515e-06
  16  4.44953
  17  0.226686
  18  0.129255
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  3.615e+00  7.150e+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:  7.651e-01  1.293e-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.094e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/886025/likelihoodResults_491529601_491788801_4FGL_J1559.9+2319_daily_bin973.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) = 6572.99301019
delta logL = 0.0076006315885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6572.99046759
delta logL = 0.0101432350284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0913       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4201       1.0000          .0000       10.000    
     3 'Normalizat'    1.0916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76565       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=   6572.990     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0900        8.0992        .23066E-03   -.44506E-04
   2  Index         2.4203        1.2734        .96235E-02    .18853E-03
   3  Normalizat    1.0916        .21714        .27085E-03   -.84384E-03
   4  Prefactor     .76564        .12687        .18503E-03   -.12580E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09003
  Index      = 2.42026
  Normalizat = 1.09161
  Prefactor  = 0.765645
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0900        7.4892        .92265E-05   -1.5356    
   2  Index         2.4203        1.1801        .19247E-02   -.54211    
   3  Normalizat    1.0916        .21718        .54170E-04   -.90022    
   4  Prefactor     .76564        .12692        .37006E-04   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21141e-10
Minuit parameter uncertainties:
  1  7.49152
  2  1.19553
  3  0.217361
  4  0.126966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886025': 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) = 6572.99046754
delta logL = 0.0101432863212

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  3.090e+00  7.492e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.420e+00  1.196e+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.656e-01  1.270e-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.092e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 239.978 23.320

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/886025/cmap_HighResolution_491529601_491788801_4FGL_J1559.9+2319_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-12 23:46:42.916161', job_id='886025', GAL2='0.77', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631515602.92', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.01e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='973' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:46:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 886025: <4FGL_J1559.9+2319_daily_bin973> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin973 239.978 23.3196 491529601 491788801 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 :                                   582.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            963 sec.

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

