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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1271
RA = 239.978, Dec = 23.3196
tmin = 568771201, tmax = 569030401
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='887510', job_status='RUN', time_executed='2021-09-12 23:41:08.482386', time_epoch_executed='1631515268.48' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887510/ft1_4FGL_J1559.9+2319_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887510/ft2_4FGL_J1559.9+2319_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887510/ft1_4FGL_J1559.9+2319_daily_bin1271.fits outfile=/scratch/kocevski/887510/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1271.fits ra=239.978 dec=23.3196 rad=12.0 tmin=568771201.0 tmax=569030401.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.95
user 2.72
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887510/ft1_filtered_4FGL_J1559.9+2319_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/887510/ft2_4FGL_J1559.9+2319_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/887510/ltcube_568771201_569030401_4FGL_J1559.9+2319_daily_bin1271.fits outfile=/scratch/kocevski/887510/expmap_568771201_569030401_4FGL_J1559.9+2319_daily_bin1271.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/887510/ltcube_568771201_569030401_4FGL_J1559.9+2319_daily_bin1271.fits
.....................!
real 156.90
user 151.50
sys 4.88

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/887510/ft1_filtered_4FGL_J1559.9+2319_daily_bin1271.fits scfile=/scratch/kocevski/887510/ft2_4FGL_J1559.9+2319_daily_bin1271.fits outfile=/scratch/kocevski/887510/cmap_568771201_569030401_4FGL_J1559.9+2319_daily_bin1271.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.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887510/ft1_filtered_4FGL_J1559.9+2319_daily_bin1271.fits scfile=/scratch/kocevski/887510/ft2_4FGL_J1559.9+2319_daily_bin1271.fits outfile=/scratch/kocevski/887510/cmap_HighResolution_568771201_569030401_4FGL_J1559.9+2319_daily_bin1271.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.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.368       1.0000         .10000E-03   10000.    
    11 'norm      '    .36536E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84698       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1588       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89319       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=   8264.768     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1777 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.949        48.694       -.33945E-06    .59309E-04
   2  Prefactor     .10000E-03    2.6885        .25804E-07** at limit **
   3  norm          .10000E-03    .49114        .14614E-07** at limit **
   4  Prefactor     44.267        40.777        .21632E-06    .14444E-04
   5  Prefactor     .10000E-03    2.3372        .12764E-07** at limit **
   6  Prefactor     .10000E-03    9.6701        .30415E-08** at limit **
   7  Prefactor     .10000E-03    .71745        .16509E-07** at limit **
   8  Prefactor     .10000E-03    44.447       -.19049E-05** at limit **
   9  norm          4.1567        3.0984       -.63612E-07    .21174E-03
  10  Prefactor     19.355        30.204        .14515E-05   -.81559E-04
  11  norm          .10000E-03    7.4237       -.29021E-05** at limit **
  12  Prefactor     3.3161        7.5451        .40535E-05    .11732E-03
  13  Prefactor     1.3583        3.1959        .41206E-06    .31015E-04
  14  Prefactor     .10000E-03    14.699       -.68767E-07** at limit **
  15  Prefactor     6.0559        13.082        .20918E-06   -.14906E-04
  16  Prefactor     .85514        3.1580        .16528E-06   -.11254E-03
  17  Normalizat    1.1587        .18442       -.63405E-06    .73539E-04
  18  Prefactor     .89318        .10544       -.14357E-06    .11691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9491
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.2674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.15669
  Prefactor  = 19.3548
  norm       = 0.000100002
  Prefactor  = 3.31613
  Prefactor  = 1.3583
  Prefactor  = 0.0001
  Prefactor  = 6.05594
  Prefactor  = 0.85514
  Normalizat = 1.15873
  Prefactor  = 0.89318
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.768     FROM HESSE     STATUS=OK           248 CALLS     2025 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.949        48.737        .55123E-04   -1.4251    
   2  Prefactor     .10000E-03    2.6965        .14557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .51047        .12435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.267        40.791        .60257E-04   -1.4376    
   5  Prefactor     .10000E-03    2.3463        .13571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .72343        .75153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1567        3.0222        .12795E-03   -1.5300    
  10  Prefactor     19.355        30.327        .91008E-04   -1.4828    
  11  norm          .10000E-03    18.517        .40766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3161        7.8518        .11116E-02   -1.5344    
  13  Prefactor     1.3583        3.1941        .23773E-03   -1.5475    
  14  Prefactor     .10000E-03    14.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0559        13.026        .16317E-03   -1.5216    
  16  Prefactor     .85514        9.2767        .29349E-02   -1.5523    
  17  Normalizat    1.1587        .22021        .28832E-03   -.87888    
  18  Prefactor     .89318        .12655        .18838E-03   -.96380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04376e-08
Minuit parameter uncertainties:
  1  48.7736
  2  2.91263e-06
  3  8.12386e-07
  4  40.8164
  5  1.54612e-06
  6  2.99718e-06
  7  8.66965e-07
  8  0.000720718
  9  3.02231
  10  30.3509
  11  0.000413343
  12  7.85427
  13  3.19446
  14  3.79663e-06
  15  13.0322
  16  5.63386
  17  0.220381
  18  0.126591
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  3.316e+00  7.854e+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:  8.932e-01  1.266e-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.159e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 239.978 23.320
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887510/likelihoodResults_568771201_569030401_4FGL_J1559.9+2319_daily_bin1271.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) = 8264.46151408
delta logL = 0.306790122684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8264.43046294
delta logL = 0.337841263472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87330       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4961       1.0000          .0000       10.000    
     3 'Normalizat'    1.1229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8264.430     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      276 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87219        16.527        .12710E-01    .14899E-02
   2  Index         3.4967        2.6197        .12327        .19539E-03
   3  Normalizat    1.1228        .38291E-01    .66059E-01    .12399E-04
   4  Prefactor     .90378        .22303E-01    .45052E-01   -.40974E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.872188
  Index      = 3.49671
  Normalizat = 1.12283
  Prefactor  = 0.903779
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.430     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87219        54.756        .94091E-04   -1.5521    
   2  Index         3.4967        6.6778        .67270E-02   -.30538    
   3  Normalizat    1.1228        .19320        .29224E-03   -.89022    
   4  Prefactor     .90378        .11001        .18734E-03   -.96009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4027e-06
Minuit parameter uncertainties:
  1  13.8339
  2  7.17015
  3  0.193323
  4  0.110035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887510': 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) = 8264.43046276
delta logL = 0.337841447266

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  8.722e-01  1.383e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.497e+00  7.170e+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:  9.038e-01  1.100e-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.123e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/887510/cmap_HighResolution_568771201_569030401_4FGL_J1559.9+2319_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-12 23:49:53.170737', job_id='887510', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.16', time_epoch_completed='1631515793.17', return_code2='102', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.38e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1271' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:49:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 887510: <4FGL_J1559.9+2319_daily_bin1271> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1271> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 23:35:28 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:40:53 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:40:53 2021
Terminated at Sun Sep 12 23:49:53 2021
Results reported at Sun Sep 12 23:49:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1271 239.978 23.3196 568771201 569030401 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            865 sec.

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

