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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin505
RA = 239.978, Dec = 23.3196
tmin = 370224001, tmax = 370483201
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='883251', job_status='RUN', time_executed='2021-09-12 23:27:33.885843', time_epoch_executed='1631514453.89' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883251/ft1_4FGL_J1559.9+2319_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883251/ft2_4FGL_J1559.9+2319_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883251/ft1_4FGL_J1559.9+2319_daily_bin505.fits outfile=/scratch/kocevski/883251/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin505.fits ra=239.978 dec=23.3196 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.43
user 15.90
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883251/ft2_4FGL_J1559.9+2319_daily_bin505.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/883251/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/883251/ft1_filtered_4FGL_J1559.9+2319_daily_bin505.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883251/ft1_filtered_4FGL_J1559.9+2319_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/883251/ft2_4FGL_J1559.9+2319_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/883251/ltcube_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.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/883251/ft2_4FGL_J1559.9+2319_daily_bin505.fits
.....................!
real 11.97
user 11.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883251/ft1_filtered_4FGL_J1559.9+2319_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/883251/ft2_4FGL_J1559.9+2319_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/883251/ltcube_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.fits outfile=/scratch/kocevski/883251/expmap_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.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/883251/ltcube_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.fits
.....................!
real 191.71
user 187.01
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/883251/ft1_filtered_4FGL_J1559.9+2319_daily_bin505.fits scfile=/scratch/kocevski/883251/ft2_4FGL_J1559.9+2319_daily_bin505.fits outfile=/scratch/kocevski/883251/cmap_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883251/ft1_filtered_4FGL_J1559.9+2319_daily_bin505.fits scfile=/scratch/kocevski/883251/ft2_4FGL_J1559.9+2319_daily_bin505.fits outfile=/scratch/kocevski/883251/cmap_HighResolution_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=239.978 yref=23.3196 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    114.11       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.6653       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8819       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.827       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.775       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.789       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .84079       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84079       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=   1467.352     FROM MIGRAD    STATUS=CONVERGED    360 CALLS     1992 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     114.03        162.60       -.67287E-04    .51988E-05
   2  Prefactor     .10000E-03    18.477        .42731E-07** at limit **
   3  norm          8.6653        3.8470       -.29338E-06    .88575E-04
   4  Prefactor     .10000E-03    71.584        .63615E-05** at limit **
   5  Prefactor     .10000E-03    9.4219       -.93646E-07** at limit **
   6  Prefactor     39.855        56.746        .29711E-05    .26754E-05
   7  Prefactor     4.8815        5.5321       -.51657E-06   -.11298E-04
   8  Prefactor     .10000E-03    76.978       -.17451E-04** at limit **
   9  norm          9.2904        12.284        .86157E-05    .27193E-04
  10  Prefactor     .10001E-03    258.24       -.11981E-04** at limit **
  11  norm          .10000E-03    22.229       -.25746E-06** at limit **
  12  Prefactor     12.823        23.982       -.89922E-06   -.19202E-04
  13  Prefactor     4.8483        5.2064       -.30504E-06    .34646E-04
  14  Prefactor     .10000E-03    93.434        .15210E-04** at limit **
  15  Prefactor     49.769        68.655       -.55298E-05   -.61352E-05
  16  Prefactor     25.785        33.415       -.38991E-06   -.16460E-04
  17  Normalizat    .84088        .43890        .12390E-04   -.57812E-04
  18  Prefactor     .84065        .26064       -.71655E-06    .63783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 114.033
  Prefactor  = 0.0001
  norm       = 8.66531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.8552
  Prefactor  = 4.8815
  Prefactor  = 0.0001
  norm       = 9.29039
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 12.8235
  Prefactor  = 4.84828
  Prefactor  = 0.000100001
  Prefactor  = 49.7692
  Prefactor  = 25.7853
  Normalizat = 0.840877
  Prefactor  = 0.84065
 **********
 **   18 **HESSE 
 **********

 FCN=   1467.352     FROM HESSE     STATUS=OK           244 CALLS     2236 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     114.03        162.52        .18831E-03   -1.3568    
   2  Prefactor     .10000E-03    18.567        .16081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.6653        3.8625        .47203E-04   -1.5119    
   4  Prefactor     .10000E-03    71.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4313        .11480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.855        56.742        .63496E-04   -1.4445    
   7  Prefactor     4.8815        5.5320        .90128E-04   -1.5266    
   8  Prefactor     .10000E-03    77.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2904        12.301        .13147E-03   -1.5098    
  10  Prefactor     .10001E-03    259.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    22.229        .17647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.823        24.011        .11184E-03   -1.4992    
  13  Prefactor     4.8483        5.2125        .87678E-04   -1.5268    
  14  Prefactor     .10000E-03    94.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.769        68.902        .56841E-04   -1.4296    
  16  Prefactor     25.785        33.415        .78883E-04   -1.4692    
  17  Normalizat    .84088        .50225        .33778E-03   -.98570    
  18  Prefactor     .84065        .30123        .20452E-03   -.98247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42344e-10
Minuit parameter uncertainties:
  1  163.16
  2  2.67084e-06
  3  3.86257
  4  0.000180609
  5  2.67979e-05
  6  56.8189
  7  5.53262
  8  9.54822e-05
  9  12.3044
  10  0.0028451
  11  2.0915e-05
  12  24.0288
  13  5.21303
  14  0.00058394
  15  69.0122
  16  33.4389
  17  0.505069
  18  0.301827
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.282e+01  2.403e+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:  8.406e-01  3.018e-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:  8.409e-01  5.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/883251/likelihoodResults_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.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) = 1467.34516436
delta logL = 0.00657122803409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1467.34144048
delta logL = 0.0102951045583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.493       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4272       1.0000          .0000       10.000    
     3 'Normalizat'    .83749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84152       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=   1467.341     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      237 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.497        27.890        .12369E-03   -.19924E-03
   2  Index         2.4270        1.2831        .59836E-02   -.74346E-04
   3  Normalizat    .83731        .47547        .33842E-03    .15675E-03
   4  Prefactor     .84163        .29225        .20440E-03    .34484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4966
  Index      = 2.42699
  Normalizat = 0.837311
  Prefactor  = 0.841632
 **********
 **   18 **HESSE 
 **********

 FCN=   1467.341     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.497        26.224        .49476E-05   -1.5060    
   2  Index         2.4270        1.2084        .23934E-03   -.54054    
   3  Normalizat    .83731        .47561        .67685E-04   -.98699    
   4  Prefactor     .84163        .29232        .40880E-04   -.98212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39157e-10
Minuit parameter uncertainties:
  1  26.253
  2  1.22495
  3  0.478005
  4  0.292858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883251': 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) = 1467.34144039
delta logL = 0.0102951966082

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.050e+01  2.625e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.427e+00  1.225e+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:  8.416e-01  2.929e-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:  8.373e-01  4.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/883251/cmap_HighResolution_370224001_370483201_4FGL_J1559.9+2319_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-02', job_status='DONE', photon_flux_upper_limit='3.06e-07', time_completed='2021-09-12 23:34:54.030359', job_id='883251', GAL2='0.84', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631514894.03', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.03e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='505' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:34:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 883251: <4FGL_J1559.9+2319_daily_bin505> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin505> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 23:20:19 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:25:28 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:25:28 2021
Terminated at Sun Sep 12 23:34:54 2021
Results reported at Sun Sep 12 23:34:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin505 239.978 23.3196 370224001 370483201 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 :                                   433.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            875 sec.

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

