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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1131
RA = 239.978, Dec = 23.3196
tmin = 532483201, tmax = 532742401
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='887297', job_status='RUN', time_executed='2021-09-12 23:37:13.265580', time_epoch_executed='1631515033.27' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887297/ft1_4FGL_J1559.9+2319_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887297/ft2_4FGL_J1559.9+2319_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887297/ft1_4FGL_J1559.9+2319_daily_bin1131.fits outfile=/scratch/kocevski/887297/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1131.fits ra=239.978 dec=23.3196 rad=12.0 tmin=532483201.0 tmax=532742401.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 2.89
user 2.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887297/ft1_filtered_4FGL_J1559.9+2319_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/887297/ft2_4FGL_J1559.9+2319_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/887297/ltcube_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.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/887297/ft2_4FGL_J1559.9+2319_daily_bin1131.fits
.....................!
real 11.33
user 11.00
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887297/ft1_filtered_4FGL_J1559.9+2319_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/887297/ft2_4FGL_J1559.9+2319_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/887297/ltcube_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.fits outfile=/scratch/kocevski/887297/expmap_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.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/887297/ltcube_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.fits
.....................!
real 157.11
user 152.97
sys 3.81

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/887297/ft1_filtered_4FGL_J1559.9+2319_daily_bin1131.fits scfile=/scratch/kocevski/887297/ft2_4FGL_J1559.9+2319_daily_bin1131.fits outfile=/scratch/kocevski/887297/cmap_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887297/ft1_filtered_4FGL_J1559.9+2319_daily_bin1131.fits scfile=/scratch/kocevski/887297/ft2_4FGL_J1559.9+2319_daily_bin1131.fits outfile=/scratch/kocevski/887297/cmap_HighResolution_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.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.49
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0464       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69060E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.092       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.034       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3025       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.482       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4215       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .61029       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1999       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=   7196.668     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1798 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.676        50.193       -.10844E-04   -.15107E-04
   2  Prefactor     .10000E-03    3.1592        .68173E-07** at limit **
   3  norm          1.7402        1.9499        .75487E-06   -.19464E-03
   4  Prefactor     11.211        34.762        .96520E-05    .30536E-05
   5  Prefactor     8.0427        10.909       -.28113E-05   -.64239E-04
   6  Prefactor     .10000E-03    12.337        .21128E-05** at limit **
   7  Prefactor     .81412E-01    1.1062        .47892E-06   -.51133E-03
   8  Prefactor     21.095        27.584        .53803E-05    .36462E-05
   9  norm          3.0288        2.9505       -.14446E-06   -.41654E-04
  10  Prefactor     .10000E-03    9.4665       -.34174E-05** at limit **
  11  norm          11.036        8.7743        .36013E-06    .12394E-06
  12  Prefactor     9.3034        9.3399        .45393E-06   -.32381E-04
  13  Prefactor     2.0976        2.5347        .70110E-07   -.26459E-04
  14  Prefactor     .10000E-03    8.8004        .21160E-05** at limit **
  15  Prefactor     50.488        19.925        .53029E-05    .52641E-05
  16  Prefactor     1.4209        1.0322        .11195E-06   -.16403E-02
  17  Normalizat    .61012        .22182       -.18210E-05   -.13876E-03
  18  Prefactor     1.1999        .12995       -.12915E-06   -.20641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.6761
  Prefactor  = 0.0001
  norm       = 1.74021
  Prefactor  = 11.2111
  Prefactor  = 8.04269
  Prefactor  = 0.0001
  Prefactor  = 0.0814119
  Prefactor  = 21.095
  norm       = 3.02881
  Prefactor  = 0.0001
  norm       = 11.0357
  Prefactor  = 9.3034
  Prefactor  = 2.09759
  Prefactor  = 0.0001
  Prefactor  = 50.4877
  Prefactor  = 1.42091
  Normalizat = 0.610118
  Prefactor  = 1.19987
 **********
 **   18 **HESSE 
 **********

 FCN=   7196.668     FROM HESSE     STATUS=OK           252 CALLS     2050 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.676        50.163        .49148E-04   -1.4073    
   2  Prefactor     .10000E-03    3.1735        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7402        1.9502        .95284E-04   -1.5444    
   4  Prefactor     11.211        34.771        .11967E-03   -1.5038    
   5  Prefactor     8.0427        11.020        .14134E-03   -1.5141    
   6  Prefactor     .10000E-03    12.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .81412E-01    15.708        .16771E-02   -1.5651    
   8  Prefactor     21.095        27.604        .87213E-04   -1.4789    
   9  norm          3.0288        2.9439        .13759E-03   -1.5360    
  10  Prefactor     .10000E-03    9.4738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.036        8.7683        .12061E-03   -1.5043    
  12  Prefactor     9.3034        9.3411        .13140E-03   -1.5098    
  13  Prefactor     2.0976        2.5252        .14349E-03   -1.5418    
  14  Prefactor     .10000E-03    8.8883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.488        20.077        .56443E-04   -1.4286    
  16  Prefactor     1.4209        5.5765        .18139E-02   -1.5470    
  17  Normalizat    .61012        .24602        .38894E-03   -1.0756    
  18  Prefactor     1.1999        .14621        .17423E-03   -.86335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80815e-09
Minuit parameter uncertainties:
  1  50.1948
  2  6.70182e-06
  3  1.95027
  4  34.8339
  5  11.0224
  6  1.82401e-05
  7  2.26094
  8  27.6202
  9  2.94401
  10  1.13613e-05
  11  8.76929
  12  9.34255
  13  2.52535
  14  5.01244e-06
  15  20.0793
  16  5.57855
  17  0.246461
  18  0.146262
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  9.303e+00  9.343e+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:  1.200e+00  1.463e-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.101e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/887297/likelihoodResults_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.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) = 7196.38372766
delta logL = 0.28461712357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7196.38207983
delta logL = 0.286264947785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.890       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7389       1.0000          .0000       10.000    
     3 'Normalizat'    .62260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1940       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=   7196.382     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      306 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.892        15.623        .97454E-04   -.15874E-02
   2  Index         1.7388        .58046        .10091E-01   -.49115E-03
   3  Normalizat    .62279        .23332        .38513E-03    .17576E-03
   4  Prefactor     1.1939        .14380        .17455E-03    .49198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8922
  Index      = 1.73876
  Normalizat = 0.622788
  Prefactor  = 1.19388
 **********
 **   18 **HESSE 
 **********

 FCN=   7196.382     FROM HESSE     STATUS=OK            23 CALLS      329 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.892        15.452        .19491E-04   -1.4886    
   2  Index         1.7388        .57434        .40365E-03   -.71055    
   3  Normalizat    .62279        .23340        .15405E-04   -1.0702    
   4  Prefactor     1.1939        .14387        .34910E-04   -.86520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00702e-09
Minuit parameter uncertainties:
  1  15.4559
  2  0.576565
  3  0.233767
  4  0.143919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887297': 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) = 7196.3820795
delta logL = 0.286265277424

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.689e+01  1.546e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.739e+00  5.766e-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.194e+00  1.439e-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.228e-01  2.338e-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.74 +/- 0.58
Photon Flux (Free Index): 2.48e-08 +/- 2.73e-08
Energy Flux (Free Index): 3.58e-05 +/- 5.29e-05

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/887297/cmap_HighResolution_532483201_532742401_4FGL_J1559.9+2319_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='3.58e-05', photon_flux_error='3.28e-08', dlogl='2.86e-01', energy_flux='1.33e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2021-09-12 23:45:47.565754', photon_index_error2='0.58', photon_index2='1.74', ts='1.59', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='5.29e-05', EG='0.61', time_epoch_completed='1631515547.57', return_code='0', job_id='887297', GAL2='1.19', EG2='0.62', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='2.73e-08', ts2='2.15', photon_index='2.26' WHERE bin_id='1131' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:45:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 887297: <4FGL_J1559.9+2319_daily_bin1131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1131 239.978 23.3196 532483201 532742401 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 :                                   496.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            634 sec.

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

