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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1200
RA = 239.978, Dec = 23.3196
tmin = 550368001, tmax = 550627201
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='887408', job_status='RUN', time_executed='2021-09-12 23:42:03.636642', time_epoch_executed='1631515323.64' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887408

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887408/ft1_4FGL_J1559.9+2319_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887408/ft2_4FGL_J1559.9+2319_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887408/ft1_4FGL_J1559.9+2319_daily_bin1200.fits outfile=/scratch/kocevski/887408/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1200.fits ra=239.978 dec=23.3196 rad=12.0 tmin=550368001.0 tmax=550627201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.04
user 3.76
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887408/ft1_filtered_4FGL_J1559.9+2319_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/887408/ft2_4FGL_J1559.9+2319_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/887408/ltcube_550368001_550627201_4FGL_J1559.9+2319_daily_bin1200.fits outfile=/scratch/kocevski/887408/expmap_550368001_550627201_4FGL_J1559.9+2319_daily_bin1200.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/887408/ltcube_550368001_550627201_4FGL_J1559.9+2319_daily_bin1200.fits
.....................!
real 190.47
user 184.78
sys 5.24

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/887408/ft1_filtered_4FGL_J1559.9+2319_daily_bin1200.fits scfile=/scratch/kocevski/887408/ft2_4FGL_J1559.9+2319_daily_bin1200.fits outfile=/scratch/kocevski/887408/cmap_550368001_550627201_4FGL_J1559.9+2319_daily_bin1200.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.37
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.306       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.587       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    132.87       1.0000         .10000E-03   10000.    
    11 'norm      '    .15810E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.399       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19063E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .41593E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2355       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=   2301.548     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     2335 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4898        933.05        .25686E-03    .21975E-04
   2  Prefactor     .10000E-03    75.965        .18142E-02** at limit **
   3  norm          16.314        10.263        .99186E-04   -.16276E-04
   4  Prefactor     .10000E-03    30.256        .18142E-02** at limit **
   5  Prefactor     17.111        31.990        .96791E-04    .76523E-04
   6  Prefactor     .10000E-03    56.522        .18142E-02** at limit **
   7  Prefactor     .10000E-03    5.3718        .10797E-02** at limit **
   8  Prefactor     64.596        64.629        .49935E-04    .61561E-04
   9  norm          .10000E-03    1.7287        .61313E-03** at limit **
  10  Prefactor     132.90        82.876        .17467E-03    .27797E-03
  11  norm          .10000E-03    33.601        .50190E-01** at limit **
  12  Prefactor     .10000E-03    11.584        .15937E-02** at limit **
  13  Prefactor     .10000E-03    44.534        .18142E-02** at limit **
  14  Prefactor     48.408        41.806        .57639E-04    .74162E-04
  15  Prefactor     .10000E-03    36.552        .18142E-02** at limit **
  16  Prefactor     .10000E-03    210.32        .56192E-02** at limit **
  17  Normalizat    .41562E-01    7.2018        .12550E-01    .66745E-04
  18  Prefactor     1.2356        .40340        .15825E-03    .42569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.48979
  Prefactor  = 0.000100001
  norm       = 16.3139
  Prefactor  = 0.0001
  Prefactor  = 17.1108
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 64.5957
  norm       = 0.0001
  Prefactor  = 132.901
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 48.4082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.0415619
  Prefactor  = 1.23564
 **********
 **   18 **HESSE 
 **********

 FCN=   2301.548     FROM HESSE     STATUS=OK           238 CALLS     2573 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4898        781.58        .10275E-04   -1.5392    
   2  Prefactor     .10000E-03    76.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.314        10.215        .39675E-05   -1.4900    
   4  Prefactor     .10000E-03    30.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.111        31.979        .19358E-04   -1.4880    
   6  Prefactor     .10000E-03    56.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3726        .21594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.596        62.797        .99871E-05   -1.4099    
   9  norm          .10000E-03    1.7288        .12263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     132.90        82.133        .34935E-04   -1.3397    
  11  norm          .10000E-03    24.817        .57776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.585        .31874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.408        40.639        .11528E-04   -1.4315    
  15  Prefactor     .10000E-03    36.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    216.08        .22477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .41562E-01    2.2604        .50201E-03   -1.4583    
  18  Prefactor     1.2356        .26609        .31651E-04   -.85242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05059e-09
Minuit parameter uncertainties:
  1  89.4281
  2  0.000407421
  3  10.2157
  4  2.69609e-05
  5  32.0111
  6  0.000603509
  7  2.60789e-06
  8  62.861
  9  4.47981e-06
  10  82.2033
  11  0.000315636
  12  6.34634e-06
  13  0.000333383
  14  40.6627
  15  9.95813e-05
  16  0.000195781
  17  0.557775
  18  0.266381
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  6.346e-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.236e+00  2.664e-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:  4.156e-02  5.578e-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: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887408/likelihoodResults_550368001_550627201_4FGL_J1559.9+2319_daily_bin1200.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) = 2301.54842205
delta logL = -0.000409490807669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2301.54801253
delta logL = 2.93766788673e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2290       1.0000          .0000       10.000    
     3 'Normalizat'    .41480E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2357       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=   2301.548     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10341E-03    10.113        .16408E-01** at limit **
   2  Index         2.1288        6.6293        .50000        .14594E-04
   3  Normalizat    .41554E-01    .82596E-02    .12547E-01    .75425E-04
   4  Prefactor     1.2356        .43637E-02    .15825E-03    .75282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103411
  Index      = 2.12877
  Normalizat = 0.0415541
  Prefactor  = 1.23564
 **********
 **   18 **HESSE 
 **********

 FCN=   2301.548     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      286 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10341E-03    154.73        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1288        6.0298        .50000       -.61168    
   3  Normalizat    .41554E-01    .32700E-01    .50190E-03   -1.4583    
   4  Prefactor     1.2356        .17262E-01    .31651E-04   -.85241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.36339e-09
Minuit parameter uncertainties:
  1  0.0460629
  2  491.919
  3  0.0327184
  4  0.0172617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887408': 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) = 2301.54801216
delta logL = 3.95867118641e-07

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.034e-04  4.606e-02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.129e+00  4.919e+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.236e+00  1.726e-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:  4.155e-02  3.272e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/887408/cmap_HighResolution_550368001_550627201_4FGL_J1559.9+2319_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-09-12 23:50:12.118943', job_id='887408', GAL2='1.24', fit_tolerance='1e-08', EG2='0.04', EG='0.04', time_epoch_completed='1631515812.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1200' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:50:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 887408: <4FGL_J1559.9+2319_daily_bin1200> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1200> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 23:35:21 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 23:38:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 23:38:13 2021
Terminated at Sun Sep 12 23:50:12 2021
Results reported at Sun Sep 12 23:50:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1200 239.978 23.3196 550368001 550627201 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 :                                   424.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             232.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            891 sec.

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

