/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 0 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1559.9+2319_daily_bin297
RA = 239.978, Dec = 23.3196
tmin = 316310401, tmax = 316569601
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='881790', job_status='RUN', time_executed='2021-09-12 23:20:14.805898', time_epoch_executed='1631514014.81' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881790/ft1_4FGL_J1559.9+2319_daily_bin297.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881790/ft2_4FGL_J1559.9+2319_daily_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881790/ft1_4FGL_J1559.9+2319_daily_bin297.fits outfile=/scratch/kocevski/881790/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin297.fits ra=239.978 dec=23.3196 rad=12.0 tmin=316310401.0 tmax=316569601.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.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881790/ft1_filtered_4FGL_J1559.9+2319_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/881790/ft2_4FGL_J1559.9+2319_daily_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/881790/ltcube_316310401_316569601_4FGL_J1559.9+2319_daily_bin297.fits outfile=/scratch/kocevski/881790/expmap_316310401_316569601_4FGL_J1559.9+2319_daily_bin297.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/881790/ltcube_316310401_316569601_4FGL_J1559.9+2319_daily_bin297.fits
.....................!
real 190.78
user 186.22
sys 4.19

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/881790/ft1_filtered_4FGL_J1559.9+2319_daily_bin297.fits scfile=/scratch/kocevski/881790/ft2_4FGL_J1559.9+2319_daily_bin297.fits outfile=/scratch/kocevski/881790/cmap_316310401_316569601_4FGL_J1559.9+2319_daily_bin297.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/881790/ft1_filtered_4FGL_J1559.9+2319_daily_bin297.fits scfile=/scratch/kocevski/881790/ft2_4FGL_J1559.9+2319_daily_bin297.fits outfile=/scratch/kocevski/881790/cmap_HighResolution_316310401_316569601_4FGL_J1559.9+2319_daily_bin297.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.889       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.3013       1.0000         .10000E-03   10000.    
     4 'Prefactor '    123.95       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11526E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20699E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.083       1.0000         .10000E-03   10000.    
     9 'norm      '    4.9495       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.258       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .63724       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1788       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=   7597.593     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1773 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.873        65.714       -.19494E-04    .16076E-04
   2  Prefactor     .10000E-03    3.9541       -.72533E-07** at limit **
   3  norm          9.3045        3.5277        .21847E-06    .25941E-03
   4  Prefactor     123.95        54.325       -.70818E-06    .13567E-04
   5  Prefactor     4.8509        16.866       -.56540E-05   -.14472E-03
   6  Prefactor     .10000E-03    48.458        .12775E-04** at limit **
   7  Prefactor     .10000E-03    1.1513       -.74746E-06** at limit **
   8  Prefactor     24.037        34.367       -.54487E-04    .16947E-04
   9  norm          4.9495        2.6751        .63677E-06    .11581E-03
  10  Prefactor     .10001E-03    33.620       -.41663E-05** at limit **
  11  norm          .10000E-03    5.9481        .33298E-06** at limit **
  12  Prefactor     .10000E-03    7.5298       -.10132E-05** at limit **
  13  Prefactor     .10000E-03    1.6952       -.89390E-06** at limit **
  14  Prefactor     5.9237        11.586       -.23502E-05   -.77582E-04
  15  Prefactor     .10000E-03    9.7115       -.16096E-06** at limit **
  16  Prefactor     10.255        8.7328       -.23747E-05   -.12044E-03
  17  Normalizat    .63727        .22672        .16297E-04    .23301E-03
  18  Prefactor     1.1788        .12460       -.86446E-06    .64423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8725
  Prefactor  = 0.0001
  norm       = 9.30452
  Prefactor  = 123.946
  Prefactor  = 4.85092
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.0367
  norm       = 4.94951
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.92368
  Prefactor  = 0.0001
  Prefactor  = 10.2554
  Normalizat = 0.637266
  Prefactor  = 1.17881
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.593     FROM HESSE     STATUS=OK           244 CALLS     2017 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.873        65.695        .53186E-04   -1.4198    
   2  Prefactor     .10000E-03    3.9708        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.3045        3.5059        .70184E-04   -1.5098    
   4  Prefactor     123.95        54.278        .36154E-04   -1.3477    
   5  Prefactor     4.8509        16.728        .18226E-03   -1.5267    
   6  Prefactor     .10000E-03    48.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9019        .17826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.037        34.351        .81625E-04   -1.4727    
   9  norm          4.9495        2.6742        .10142E-03   -1.5263    
  10  Prefactor     .10001E-03    33.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4446        .21988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9237        11.559        .16497E-03   -1.5221    
  15  Prefactor     .10000E-03    9.7447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.255        8.7231        .12511E-03   -1.5067    
  17  Normalizat    .63727        .24631        .40011E-03   -1.0642    
  18  Prefactor     1.1788        .13914        .17694E-03   -.86986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42375e-09
Minuit parameter uncertainties:
  1  65.779
  2  2.07284e-05
  3  3.50602
  4  54.3
  5  16.7446
  6  4.64675e-05
  7  0.000128629
  8  34.3791
  9  2.67422
  10  0.00105951
  11  6.76435e-06
  12  2.6445e-05
  13  0.000154131
  14  11.5636
  15  7.21172e-05
  16  8.72422
  17  0.246736
  18  0.139181
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  2.645e-05  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.179e+00  1.392e-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.373e-01  2.467e-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: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881790/likelihoodResults_316310401_316569601_4FGL_J1559.9+2319_daily_bin297.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) = 7597.59337031
delta logL = -0.000628184897323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7597.59274227
delta logL = -1.42844328366e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2570       1.0000          .0000       10.000    
     3 'Normalizat'    .63721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1789       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=   7597.593     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    368.38        .90712E-02** at limit **
   2  Index         2.2579        6.0669        .50000       -.12698E-05
   3  Normalizat    .63727        .37982E-01    .90309E-01    .59062E-04
   4  Prefactor     1.1788        .22366E-01    .35151E-01    .43375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25786
  Normalizat = 0.637266
  Prefactor  = 1.17881
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.593     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    662.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2579        7.8285        .50000       -.58048    
   3  Normalizat    .63727        .53945E-01    .40010E-03   -1.0642    
   4  Prefactor     1.1788        .31866E-01    .17694E-03   -.86986    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.26859e-11
Minuit parameter uncertainties:
  1  3.69023e-05
  2  39.5801
  3  0.0539491
  4  0.0318667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881790': 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): 102
logL (Free Index) = 7597.59274212
delta logL = 5.32054400537e-10

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.690e-05  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.258e+00  3.958e+01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.179e+00  3.187e-02  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.373e-01  5.395e-02  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/881790/cmap_HighResolution_316310401_316569601_4FGL_J1559.9+2319_daily_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-12 23:30:22.042934', job_id='881790', GAL2='1.18', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1631514622.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='5.32e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='297' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:30:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 881790: <4FGL_J1559.9+2319_daily_bin297> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin297> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 23:15:15 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:20:05 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:20:05 2021
Terminated at Sun Sep 12 23:30:22 2021
Results reported at Sun Sep 12 23:30:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin297 239.978 23.3196 316310401 316569601 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 :                                   603.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            907 sec.

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

