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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin781
RA = 239.978, Dec = 23.3196
tmin = 441763201, tmax = 442022401
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='885746', job_status='RUN', time_executed='2021-09-12 23:34:08.666979', time_epoch_executed='1631514848.67' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='781'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885746

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885746/ft1_4FGL_J1559.9+2319_daily_bin781.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885746/ft2_4FGL_J1559.9+2319_daily_bin781.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885746/ft1_4FGL_J1559.9+2319_daily_bin781.fits outfile=/scratch/kocevski/885746/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin781.fits ra=239.978 dec=23.3196 rad=12.0 tmin=441763201.0 tmax=442022401.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.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885746/ft1_filtered_4FGL_J1559.9+2319_daily_bin781.fits" evtable="EVENTS" scfile=/scratch/kocevski/885746/ft2_4FGL_J1559.9+2319_daily_bin781.fits sctable="SC_DATA" outfile=/scratch/kocevski/885746/ltcube_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.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/885746/ft2_4FGL_J1559.9+2319_daily_bin781.fits
.....................!
real 15.01
user 14.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885746/ft1_filtered_4FGL_J1559.9+2319_daily_bin781.fits evtable="EVENTS" scfile=/scratch/kocevski/885746/ft2_4FGL_J1559.9+2319_daily_bin781.fits sctable="SC_DATA" expcube=/scratch/kocevski/885746/ltcube_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.fits outfile=/scratch/kocevski/885746/expmap_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.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/885746/ltcube_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.fits
.....................!
real 191.60
user 186.30
sys 4.83

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/885746/ft1_filtered_4FGL_J1559.9+2319_daily_bin781.fits scfile=/scratch/kocevski/885746/ft2_4FGL_J1559.9+2319_daily_bin781.fits outfile=/scratch/kocevski/885746/cmap_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885746/ft1_filtered_4FGL_J1559.9+2319_daily_bin781.fits scfile=/scratch/kocevski/885746/ft2_4FGL_J1559.9+2319_daily_bin781.fits outfile=/scratch/kocevski/885746/cmap_HighResolution_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.0139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .16633E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8560       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2867       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .82984       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0216       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=   6722.388     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1717 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.452        39.139       -.19040E-04    .38567E-05
   2  Prefactor     .10000E-03    2.5341        .59363E-08** at limit **
   3  norm          7.0137        2.1555        .53343E-07    .15849E-02
   4  Prefactor     42.264        38.108        .39746E-05    .20309E-04
   5  Prefactor     .10000E-03    19.158       -.10915E-04** at limit **
   6  Prefactor     .10000E-03    24.101        .20269E-04** at limit **
   7  Prefactor     1.8189        1.7928       -.71773E-07   -.28606E-04
   8  Prefactor     .10000E-03    11.804       -.40813E-05** at limit **
   9  norm          .10000E-03    1.5092        .48131E-07** at limit **
  10  Prefactor     .10000E-03    33.224       -.11352E-04** at limit **
  11  norm          4.8575        6.3522       -.13319E-05   -.15780E-03
  12  Prefactor     .10000E-03    5.9604       -.14219E-06** at limit **
  13  Prefactor     .10000E-03    1.4702       -.19910E-07** at limit **
  14  Prefactor     .10000E-03    11.432        .43166E-05** at limit **
  15  Prefactor     .82374        9.7921       -.17995E-05   -.11379E-03
  16  Prefactor     5.2848        7.0129        .20156E-06   -.14223E-03
  17  Normalizat    .82980        .19695        .16844E-05    .13704E-03
  18  Prefactor     1.0217        .11448        .72761E-07    .28318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4517
  Prefactor  = 0.0001
  norm       = 7.0137
  Prefactor  = 42.2643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8189
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.85752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.823737
  Prefactor  = 5.28479
  Normalizat = 0.829802
  Prefactor  = 1.02166
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.388     FROM HESSE     STATUS=OK           244 CALLS     1961 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.452        39.192        .77873E-04   -1.4679    
   2  Prefactor     .10000E-03    2.5403        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0137        2.1496        .63617E-04   -1.5178    
   4  Prefactor     42.264        38.131        .61665E-04   -1.4407    
   5  Prefactor     .10000E-03    19.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8189        1.7927        .10493E-03   -1.5438    
   8  Prefactor     .10000E-03    11.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.1595        .19504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8575        6.3344        .18255E-03   -1.5267    
  12  Prefactor     .10000E-03    6.0068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4803        .97060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .82374        41.139        .48601E-02   -1.5526    
  16  Prefactor     5.2848        6.9685        .17481E-03   -1.5248    
  17  Normalizat    .82980        .23161        .31760E-03   -.98973    
  18  Prefactor     1.0217        .13563        .17230E-03   -.92011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3548e-08
Minuit parameter uncertainties:
  1  39.2302
  2  3.96196e-07
  3  2.14957
  4  38.1525
  5  2.99269e-05
  6  1.83042e-05
  7  1.79274
  8  3.29221e-07
  9  5.93502e-06
  10  2.62285e-05
  11  6.33532
  12  9.79403e-06
  13  2.68147e-06
  14  5.03702e-05
  15  11.6504
  16  6.96953
  17  0.231886
  18  0.135676
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  9.794e-06  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.022e+00  1.357e-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.298e-01  2.319e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/885746/likelihoodResults_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.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) = 6722.38916132
delta logL = -0.000793433027866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6722.38836765
delta logL = 2.4063501769e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2288       1.0000          .0000       10.000    
     3 'Normalizat'    .82980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0217       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=   6722.388     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    42.017        .18142E-02** at limit **
   2  Index         2.1769        5.7548        .50000        .29115E-04
   3  Normalizat    .82980        .12413E-01    .31760E-03   -.13831E-03
   4  Prefactor     1.0217        .74511E-02    .17230E-03    .15294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101019
  Index      = 2.1769
  Normalizat = 0.8298
  Prefactor  = 1.02166
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.388     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10102E-03    188.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1769        6.9104        .50000       -.59997    
   3  Normalizat    .82980        .26979E-01    .12704E-04   -.98973    
   4  Prefactor     1.0217        .16194E-01    .34460E-04   -.92011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99894e-08
Minuit parameter uncertainties:
  1  0.027769
  2  333.774
  3  0.0269794
  4  0.0161944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885746': 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) = 6722.38836733
delta logL = 5.60838088859e-07

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.010e-04  2.777e-02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.177e+00  3.338e+02  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.022e+00  1.619e-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:  8.298e-01  2.698e-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/885746/cmap_HighResolution_441763201_442022401_4FGL_J1559.9+2319_daily_bin781.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-12 23:43:54.100876', job_id='885746', GAL2='1.02', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631515434.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='781' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:43:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 885746: <4FGL_J1559.9+2319_daily_bin781> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin781> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 23:30:21 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:30:42 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:30:42 2021
Terminated at Sun Sep 12 23:43:54 2021
Results reported at Sun Sep 12 23:43:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin781 239.978 23.3196 441763201 442022401 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 :                                   582.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            813 sec.

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

