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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin736
RA = 239.978, Dec = 23.3196
tmin = 430099201, tmax = 430358401
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='884687', job_status='RUN', time_executed='2021-09-12 23:28:19.183955', time_epoch_executed='1631514499.18' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884687/ft1_4FGL_J1559.9+2319_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884687/ft2_4FGL_J1559.9+2319_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884687/ft1_4FGL_J1559.9+2319_daily_bin736.fits outfile=/scratch/kocevski/884687/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin736.fits ra=239.978 dec=23.3196 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.31
user 10.87
sys 0.38

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884687/ft1_filtered_4FGL_J1559.9+2319_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/884687/ft2_4FGL_J1559.9+2319_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/884687/ltcube_430099201_430358401_4FGL_J1559.9+2319_daily_bin736.fits outfile=/scratch/kocevski/884687/expmap_430099201_430358401_4FGL_J1559.9+2319_daily_bin736.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/884687/ltcube_430099201_430358401_4FGL_J1559.9+2319_daily_bin736.fits
.....................!
real 191.79
user 185.66
sys 5.36

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/884687/ft1_filtered_4FGL_J1559.9+2319_daily_bin736.fits scfile=/scratch/kocevski/884687/ft2_4FGL_J1559.9+2319_daily_bin736.fits outfile=/scratch/kocevski/884687/cmap_430099201_430358401_4FGL_J1559.9+2319_daily_bin736.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/884687/ft1_filtered_4FGL_J1559.9+2319_daily_bin736.fits scfile=/scratch/kocevski/884687/ft2_4FGL_J1559.9+2319_daily_bin736.fits outfile=/scratch/kocevski/884687/cmap_HighResolution_430099201_430358401_4FGL_J1559.9+2319_daily_bin736.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/884687/ft1_filtered_4FGL_J1559.9+2319_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/884687/ft2_4FGL_J1559.9+2319_daily_bin736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884687/Model_4FGL_J1559.9+2319_daily_bin736.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/884687/ft1_filtered_4FGL_J1559.9+2319_daily_bin736.fits.....................!
real 55.63
user 54.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.9934       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3710       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .93870       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12657E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5575       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3937       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .62140       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1766       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=   7276.977     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1763 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.843        59.739       -.19906E-04    .79210E-05
   2  Prefactor     .10000E-03    3.9568        .11184E-07** at limit **
   3  norm          8.9933        2.6972       -.39119E-07    .24206E-04
   4  Prefactor     59.989        40.071        .87228E-05    .27250E-04
   5  Prefactor     14.435        11.888        .42255E-06    .92100E-06
   6  Prefactor     18.194        49.319       -.21666E-05   -.15087E-05
   7  Prefactor     3.3709        2.3961       -.53923E-08   -.12775E-07
   8  Prefactor     .78674        16.166       -.92150E-06    .50206E-04
   9  norm          .10000E-03    .91687        .13176E-07** at limit **
  10  Prefactor     .10000E-03    11.676       -.37592E-07** at limit **
  11  norm          .10000E-03    5.1024       -.21023E-06** at limit **
  12  Prefactor     5.5585        10.218        .26588E-05    .44378E-05
  13  Prefactor     1.6228        4.1267       -.10790E-06   -.59656E-04
  14  Prefactor     .10000E-03    5.1156       -.41035E-07** at limit **
  15  Prefactor     .10000E-03    13.786       -.38550E-07** at limit **
  16  Prefactor     1.3953        .45836        .12573E-07   -.12799E-02
  17  Normalizat    .62151        .23094        .14647E-05    .47560E-04
  18  Prefactor     1.1766        .12801       -.17978E-06    .14000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.843
  Prefactor  = 0.0001
  norm       = 8.99334
  Prefactor  = 59.9889
  Prefactor  = 14.4346
  Prefactor  = 18.1944
  Prefactor  = 3.37095
  Prefactor  = 0.78674
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.55852
  Prefactor  = 1.62279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39533
  Normalizat = 0.621507
  Prefactor  = 1.17657
 **********
 **   18 **HESSE 
 **********

 FCN=   7276.977     FROM HESSE     STATUS=OK           252 CALLS     2015 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.843        59.776        .58573E-04   -1.4338    
   2  Prefactor     .10000E-03    4.0148        .16571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.9933        2.7098        .67302E-04   -1.5108    
   4  Prefactor     59.989        40.147        .51803E-04   -1.4157    
   5  Prefactor     14.435        11.921        .10542E-03   -1.4948    
   6  Prefactor     18.194        49.194        .93900E-04   -1.4855    
   7  Prefactor     3.3709        2.3926        .10621E-03   -1.5341    
   8  Prefactor     .78674        286.52        .64302E-02   -1.5531    
   9  norm          .10000E-03    .92769        .79734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    48.091        .37277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5585        10.210        .17042E-03   -1.5236    
  13  Prefactor     1.6228        4.1565        .25346E-03   -1.5453    
  14  Prefactor     .10000E-03    5.1339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3953        5.4312        .18396E-02   -1.5472    
  17  Normalizat    .62151        .26443        .38512E-03   -1.0708    
  18  Prefactor     1.1766        .14661        .17158E-03   -.87056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61117e-09
Minuit parameter uncertainties:
  1  59.8522
  2  2.96012e-06
  3  2.70983
  4  40.1649
  5  11.9231
  6  49.3038
  7  2.39267
  8  30.1723
  9  1.22561e-06
  10  4.88209e-06
  11  0.000226728
  12  10.2129
  13  4.15726
  14  1.12956e-05
  15  1.77185e-05
  16  5.43313
  17  0.264974
  18  0.146656
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  5.559e+00  1.021e+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.177e+00  1.467e-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:  6.215e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 239.978 23.320
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884687/likelihoodResults_430099201_430358401_4FGL_J1559.9+2319_daily_bin736.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) = 7276.30370587
delta logL = 0.672829480503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7276.27491781
delta logL = 0.701617541654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3238       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4805       1.0000          .0000       10.000    
     3 'Normalizat'    .56791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1931       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.

 FCN=   7276.275     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      345 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3245        45.560        .19110E-03    .18974E-03
   2  Index         3.4803        6.7012        .52037E-02    .38335E-04
   3  Normalizat    .56793        .22036        .40177E-03    .11602E-05
   4  Prefactor     1.1930        .13134        .17047E-03   -.45350E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32455
  Index      = 3.48026
  Normalizat = 0.567933
  Prefactor  = 1.19304
 **********
 **   18 **HESSE 
 **********

 FCN=   7276.275     FROM HESSE     STATUS=OK            27 CALLS      372 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3245        3.8905        .38220E-04   -1.5478    
   2  Index         3.4803        1.2778        .20815E-03   -.30883    
   3  Normalizat    .56793        .24279        .16071E-04   -1.0936    
   4  Prefactor     1.1930        .14360        .68187E-05   -.86546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1134e-12
Minuit parameter uncertainties:
  1  3.8912
  2  1.29365
  3  0.243249
  4  0.143649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884687': 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) = 7276.27491776
delta logL = 0.701617592206

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.325e+00  3.891e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.480e+00  1.294e+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:  1.193e+00  1.436e-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:  5.679e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 239.978 23.320
Photon Index (Free Index): 3.48 +/- 1.29
Photon Flux (Free Index): 6.43e-08 +/- 5.61e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.47e-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/884687/cmap_HighResolution_430099201_430358401_4FGL_J1559.9+2319_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='7.02e-01', photon_flux2='6.43e-08', job_status='DONE', time_completed='2021-09-12 23:39:09.961232', photon_index_error2='1.29', photon_index2='3.48', ts='0.36', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='9.47e-06', EG='0.62', time_epoch_completed='1631515149.96', return_code='0', job_id='884687', GAL2='1.19', EG2='0.57', return_code2='0', photon_flux_error2='5.61e-08', ts2='1.82', photon_index='2.26' WHERE bin_id='736' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:39:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 884687: <4FGL_J1559.9+2319_daily_bin736> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin736> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 23:25:27 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:28:09 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:28:09 2021
Terminated at Sun Sep 12 23:39:10 2021
Results reported at Sun Sep 12 23:39:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin736 239.978 23.3196 430099201 430358401 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 :                                   642.59 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            823 sec.

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

