/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1048
RA = 239.978, Dec = 23.3196
tmin = 510969601, tmax = 511228801
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='886135', job_status='RUN', time_executed='2021-09-12 23:36:11.570406', time_epoch_executed='1631514971.57' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886135/ft1_4FGL_J1559.9+2319_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886135/ft2_4FGL_J1559.9+2319_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886135/ft1_4FGL_J1559.9+2319_daily_bin1048.fits outfile=/scratch/kocevski/886135/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1048.fits ra=239.978 dec=23.3196 rad=12.0 tmin=510969601.0 tmax=511228801.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.51
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/886135/ft2_4FGL_J1559.9+2319_daily_bin1048.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/886135/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/886135/ft1_filtered_4FGL_J1559.9+2319_daily_bin1048.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/886135/ft1_filtered_4FGL_J1559.9+2319_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/886135/ft2_4FGL_J1559.9+2319_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/886135/ltcube_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.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/886135/ft2_4FGL_J1559.9+2319_daily_bin1048.fits
.....................!
real 15.41
user 15.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886135/ft1_filtered_4FGL_J1559.9+2319_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/886135/ft2_4FGL_J1559.9+2319_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/886135/ltcube_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.fits outfile=/scratch/kocevski/886135/expmap_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.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/886135/ltcube_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.fits
.....................!
real 192.52
user 186.69
sys 5.10

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/886135/ft1_filtered_4FGL_J1559.9+2319_daily_bin1048.fits scfile=/scratch/kocevski/886135/ft2_4FGL_J1559.9+2319_daily_bin1048.fits outfile=/scratch/kocevski/886135/cmap_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.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/886135/ft1_filtered_4FGL_J1559.9+2319_daily_bin1048.fits scfile=/scratch/kocevski/886135/ft2_4FGL_J1559.9+2319_daily_bin1048.fits outfile=/scratch/kocevski/886135/cmap_HighResolution_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7130       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30171E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5877       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .80872       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11958E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1441       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0107       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=   7681.305     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     2046 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7034        62.486        .13580E-03   -.23358E-04
   2  Prefactor     .10000E-03    2.4008        .13233E-02** at limit **
   3  norm          6.5456        2.0462        .66554E-04    .30317E-03
   4  Prefactor     32.147        42.037        .70652E-04   -.11267E-03
   5  Prefactor     .10000E-03    12.844        .18142E-02** at limit **
   6  Prefactor     28.688        36.918        .74795E-04    .22952E-04
   7  Prefactor     .10000E-03    .90674        .80656E-03** at limit **
   8  Prefactor     .10004E-03    146.57        .39644E-03** at limit **
   9  norm          .10000E-03    .67456        .70166E-03** at limit **
  10  Prefactor     .10000E-03    13.511        .18142E-02** at limit **
  11  norm          .10000E-03    3.0225        .14852E-02** at limit **
  12  Prefactor     9.5891        10.938        .12942E-03   -.37948E-04
  13  Prefactor     4.7117        3.5191        .13698E-03    .14275E-03
  14  Prefactor     19.916        15.811        .89762E-04    .11779E-03
  15  Prefactor     .90223        66.253        .48613E-02    .74157E-03
  16  Prefactor     .10029E-03    6.6805        .53964E-01** at limit **
  17  Normalizat    1.1435        .25420        .30983E-03    .69839E-03
  18  Prefactor     1.0109        .14181        .19348E-03    .10410E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.70343
  Prefactor  = 0.0001
  norm       = 6.54559
  Prefactor  = 32.1474
  Prefactor  = 0.0001
  Prefactor  = 28.6875
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.58914
  Prefactor  = 4.71169
  Prefactor  = 19.9158
  Prefactor  = 0.902234
  Prefactor  = 0.000100294
  Normalizat = 1.1435
  Prefactor  = 1.01093
 **********
 **   18 **HESSE 
 **********

 FCN=   7681.305     FROM HESSE     STATUS=OK           238 CALLS     2284 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7034        62.498        .54318E-05   -1.5118    
   2  Prefactor     .10000E-03    2.4010        .26465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5456        2.0457        .13311E-04   -1.5196    
   4  Prefactor     32.147        42.025        .14130E-04   -1.4573    
   5  Prefactor     .10000E-03    12.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.688        36.927        .29918E-05   -1.4636    
   7  Prefactor     .10000E-03    .90687        .16131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10004E-03    146.58        .79289E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .67458        .14033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0228        .29704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5891        10.936        .51769E-05   -1.5089    
  13  Prefactor     4.7117        3.5187        .54791E-05   -1.5274    
  14  Prefactor     19.916        15.809        .35905E-05   -1.4815    
  15  Prefactor     .90223        65.899        .19445E-03   -1.5518    
  16  Prefactor     .10029E-03    5.9568        .58016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1435        .25355        .61966E-04   -.88367    
  18  Prefactor     1.0109        .14189        .38695E-04   -.92366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26918e-08
Minuit parameter uncertainties:
  1  46.7143
  2  1.60117e-05
  3  2.04571
  4  42.0636
  5  5.39188e-05
  6  36.9565
  7  1.61613e-05
  8  0.00498636
  9  7.98443e-06
  10  9.76794e-05
  11  3.06292e-05
  12  10.9381
  13  3.51882
  14  15.8121
  15  15.4385
  16  0.00264588
  17  0.253817
  18  0.141942
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  9.589e+00  1.094e+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:  1.011e+00  1.419e-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.143e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.56e-05

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

Saving results to:
/scratch/kocevski/886135/likelihoodResults_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.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) = 7680.68710881
delta logL = 0.617576892172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7680.68296883
delta logL = 0.621716866365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0299       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1751       1.0000          .0000       10.000    
     3 'Normalizat'    1.0995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       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=   7680.683     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      255 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0327        47.491        .58281E-02    .49382E-03
   2  Index         3.1758        2.8168        .10161        .19604E-03
   3  Normalizat    1.0993        .69922E-01    .71186E-01   -.87039E-05
   4  Prefactor     1.0241        .38972E-01    .41757E-01   -.42544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03269
  Index      = 3.1758
  Normalizat = 1.09934
  Prefactor  = 1.02414
 **********
 **   18 **HESSE 
 **********

 FCN=   7680.683     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0327        58.784        .11074E-03   -1.5360    
   2  Index         3.1758        3.5857        .52046E-02   -.37346    
   3  Normalizat    1.0993        .26371        .31500E-03   -.89773    
   4  Prefactor     1.0241        .15355        .19225E-03   -.91929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52371e-07
Minuit parameter uncertainties:
  1  26.7337
  2  4.09306
  3  0.264028
  4  0.153617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886135': 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) = 7680.6829638
delta logL = 0.621721896594

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  3.033e+00  2.673e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.176e+00  4.093e+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:  1.024e+00  1.536e-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.099e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 239.978 23.320
Photon Index (Free Index): 3.18 +/- 4.09
Photon Flux (Free Index): 7.37e-08 +/- 6.34e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/886135/cmap_HighResolution_510969601_511228801_4FGL_J1559.9+2319_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='1.36e-05', photon_flux_error='3.84e-08', dlogl='6.22e-01', energy_flux='1.37e-05', photon_flux2='7.37e-08', job_status='DONE', time_completed='2021-09-12 23:47:08.760207', photon_index_error2='4.09', photon_index2='3.18', ts='1.01', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.95e-05', EG='1.14', time_epoch_completed='1631515628.76', return_code='0', job_id='886135', GAL2='1.02', EG2='1.10', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.34e-08', ts2='2.29', photon_index='2.26' WHERE bin_id='1048' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:47:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 886135: <4FGL_J1559.9+2319_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1048 239.978 23.3196 510969601 511228801 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 :                                   652.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            982 sec.

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

