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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1201
RA = 239.978, Dec = 23.3196
tmin = 550627201, tmax = 550886401
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='887409', job_status='RUN', time_executed='2021-09-12 23:41:47.142737', time_epoch_executed='1631515307.14' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887409

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887409/ft1_4FGL_J1559.9+2319_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887409/ft2_4FGL_J1559.9+2319_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887409/ft1_4FGL_J1559.9+2319_daily_bin1201.fits outfile=/scratch/kocevski/887409/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1201.fits ra=239.978 dec=23.3196 rad=12.0 tmin=550627201.0 tmax=550886401.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 4.04
user 3.72
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887409/ft1_filtered_4FGL_J1559.9+2319_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/887409/ft2_4FGL_J1559.9+2319_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/887409/ltcube_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.fits outfile=/scratch/kocevski/887409/expmap_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.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/887409/ltcube_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.fits
.....................!
real 190.98
user 185.42
sys 5.08

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/887409/ft1_filtered_4FGL_J1559.9+2319_daily_bin1201.fits scfile=/scratch/kocevski/887409/ft2_4FGL_J1559.9+2319_daily_bin1201.fits outfile=/scratch/kocevski/887409/cmap_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887409/ft1_filtered_4FGL_J1559.9+2319_daily_bin1201.fits scfile=/scratch/kocevski/887409/ft2_4FGL_J1559.9+2319_daily_bin1201.fits outfile=/scratch/kocevski/887409/cmap_HighResolution_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887409/ft1_filtered_4FGL_J1559.9+2319_daily_bin1201.fits', '/scratch/kocevski/887409/ft2_4FGL_J1559.9+2319_daily_bin1201.fits', expMap='/scratch/kocevski/887409/expmap_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.fits', expCube='/scratch/kocevski/887409/ltcube_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887409/Model_4FGL_J1559.9+2319_daily_bin1201.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/887409/ft1_filtered_4FGL_J1559.9+2319_daily_bin1201.fits
Spacecraft file(s): /scratch/kocevski/887409/ft2_4FGL_J1559.9+2319_daily_bin1201.fits
Exposure map: /scratch/kocevski/887409/expmap_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.fits
Exposure cube: /scratch/kocevski/887409/ltcube_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887409/Model_4FGL_J1559.9+2319_daily_bin1201.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 842.283520979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 839.17322101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    258.47       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13476       1.0000         .10000E-03   10000.    
     3 'norm      '    .38489E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    153.45       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18036E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18547       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30988E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    15.403       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0982       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2606       1.0000         .10000E-03   10000.    
    14 'Prefactor '    102.66       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44713E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.8753       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .34077       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   839.1506     FROM MIGRAD    STATUS=CONVERGED    178 CALLS      469 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     239.43        188.62       -.18520E-04    .19058E-01
   2  Prefactor     7.6477        104.60        .10850E-03   -.52390E-04
   3  norm          .10000E-03    21.238        .11150E-04** at limit **
   4  Prefactor     172.99        147.92        .10326E-04    .14754E-01
   5  Prefactor     .10000E-03    103.06       -.33077E-05** at limit **
   6  Prefactor     .10000E-03    282.68        .32628E-04** at limit **
   7  Prefactor     .10000E-03    19.486       -.18851E-04** at limit **
   8  Prefactor     .10000E-03    189.92       -.58068E-04** at limit **
   9  norm          4.2436        6.1613        .27569E-06    .14562E-04
  10  Prefactor     .10000E-03    50.033        .80871E-05** at limit **
  11  norm          15.551        20.692        .30782E-05   -.24456E-03
  12  Prefactor     8.9545        94.739        .76826E-04    .49809E-03
  13  Prefactor     2.2606        1.0268         .0000         .0000    
  14  Prefactor     104.92        70.188       -.23572E-05   -.42052E-01
  15  Prefactor     .92829E-02    212.77       -.27313E-04   -.24216E-02
  16  Prefactor     .10001E-03    156.06        .16862E-04** at limit **
  17  Normalizat    1.8117        .99445       -.47541E-04    .41302E-05
  18  Prefactor     .35430        .39212        .48692E-04    .18226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 239.429
  Prefactor  = 7.64773
  norm       = 0.0001
  Prefactor  = 172.992
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 4.24358
  Prefactor  = 0.0001
  norm       = 15.5509
  Prefactor  = 8.9545
  Prefactor  = 2.26062
  Prefactor  = 104.925
  Prefactor  = 0.00928294
  Prefactor  = 0.000100006
  Normalizat = 1.8117
  Prefactor  = 0.354302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   839.1506     FROM HESSE     STATUS=FAILED        57 CALLS      526 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     239.43        185.18        .63020E-03   -1.2601    
   2  Prefactor     7.6477        92.038        .96757E-02   -1.5155    
   3  norm          .10000E-03    21.137        .92138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     172.99        136.81        .81354E-03   -1.3070    
   5  Prefactor     .10000E-03    102.77        .91129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    281.31        .92945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    189.02        .99111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2436        5.7866        .49093E-02   -1.5296    
  10  Prefactor     .10000E-03    49.768        .91769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.551        19.320        .25513E-02   -1.4919    
  12  Prefactor     8.9545        92.500        .35222E-02   -1.5109    
  13  Prefactor     564.86        562.48         .0000       -1.5407    
  14  Prefactor     104.92        1.0109       -.23572E-05   -1.3656    
  15  Prefactor     .92829E-02    .70498E-01   -.27313E-04   -1.5727    
  16  Prefactor     .10001E-03    .28121        .16862E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.8117        1.0113       -.47541E-04   -.69359    
  18  Prefactor     .35430        .67523        .48692E-04   -1.1921    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.57666e-09
Minuit parameter uncertainties:
  1  185.637
  2  53.1634
  3  8.4277e-05
  4  137.062
  5  0.000122915
  6  0.0019016
  7  0.000170352
  8  0.00174571
  9  5.78732
  10  0.000132639
  11  19.3278
  12  57.675
  13  1.02683
  14  1.01086
  15  0.0508874
  16  8.12263e-05
  17  1.02335
  18  0.691224
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 839.150642653

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  8.955e+00  5.768e+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:  3.543e-01  6.912e-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.812e+00  1.023e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 239.978 23.320
Photon Flux Upper Limit: 8.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887409/likelihoodResults_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.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) = 838.532950436
delta logL = 0.617692216719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 838.089940576
delta logL = 1.06070207707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.258       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0046       1.0000          .0000       10.000    
     3 'Normalizat'    1.8187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34521       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=   838.0899     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.460        87.111        .33861E-04   -.19387E-05
   2  Index         1.0051        .65093        .17755E-03    .61616E-06
   3  Normalizat    1.8160        .75441        .13086E-05   -.24091E-04
   4  Prefactor     .34606        .33306       -.21788E-05   -.86230E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.46
  Index      = 1.00509
  Normalizat = 1.81603
  Prefactor  = 0.346056
 **********
 **   18 **HESSE 
 **********

 FCN=   838.0899     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.460        87.080        .25633E-03   -1.4138    
   2  Index         1.0051        .65039        .50171E-03   -.92560    
   3  Normalizat    1.8160        .85938        .31995E-03   -.69246    
   4  Prefactor     .34606        .37879        .29678E-03   -1.1966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5849e-11
Minuit parameter uncertainties:
  1  87.2615
  2  0.655571
  3  0.866699
  4  0.38156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887409': 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) = 838.089932383
delta logL = 1.06071027059

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  6.146e+01  8.726e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.005e+00  6.556e-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:  3.461e-01  3.816e-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.816e+00  8.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 239.978 23.320
Photon Index (Free Index): 1.01 +/- 0.66
Photon Flux (Free Index): 6.29e-08 +/- 7.63e-08
Energy Flux (Free Index): 8.98e-04 +/- 1.57e-03

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/887409/cmap_HighResolution_550627201_550886401_4FGL_J1559.9+2319_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-02', comment='SUCCESS', energy_flux2='8.98e-04', dlogl='1.06e+00', photon_flux2='6.29e-08', job_status='DONE', time_completed='2021-09-12 23:48:41.222849', photon_index_error2='0.66', photon_index2='1.01', ts='0.03', fit_tolerance='1e-08', GAL='0.35', photon_index_error='0.00', photon_flux_upper_limit='8.30e-07', energy_flux_error2='1.57e-03', EG='1.81', time_epoch_completed='1631515721.22', return_code='101', job_id='887409', GAL2='0.35', EG2='1.82', return_code2='0', photon_flux_error2='7.63e-08', ts2='2.15', photon_index='2.26' WHERE bin_id='1201' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:48:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 887409: <4FGL_J1559.9+2319_daily_bin1201> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1201> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 23:35:21 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:38:14 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:38:14 2021
Terminated at Sun Sep 12 23:48:41 2021
Results reported at Sun Sep 12 23:48:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1201 239.978 23.3196 550627201 550886401 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 :                                   334.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            800 sec.

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

