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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1302
RA = 29.7665, Dec = 33.2175
tmin = 576806401, tmax = 577065601
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='981819', job_status='RUN', time_executed='2021-08-14 23:54:35.222256', time_epoch_executed='1629010475.22' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981819/ft1_4FGL_J0159.0+3313_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981819/ft1_4FGL_J0159.0+3313_daily_bin1302.fits outfile=/scratch/kocevski/981819/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1302.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=576806401.0 tmax=577065601.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.89
user 2.35
sys 1.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.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/981819/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.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 1.76
user 0.28
sys 1.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/981819/ltcube_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.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/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits
.....................!
real 15.66
user 13.85
sys 1.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/981819/ltcube_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.fits outfile=/scratch/kocevski/981819/expmap_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.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/981819/ltcube_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.fits
.....................!
real 159.27
user 152.14
sys 6.68

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J0159.0+3313 @ 29.7665 33.2175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits scfile=/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits outfile=/scratch/kocevski/981819/cmap_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.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=29.7665 yref=33.2175 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 1.77
user 0.34
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits scfile=/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits outfile=/scratch/kocevski/981819/cmap_HighResolution_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.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=29.7665 yref=33.2175 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 1.77
user 0.33
sys 1.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/981819/Model_4FGL_J0159.0+3313_daily_bin1302.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/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits...................!
real 14.84
user 11.93
sys 2.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits', '/scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits', expMap='/scratch/kocevski/981819/expmap_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.fits', expCube='/scratch/kocevski/981819/ltcube_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/981819/Model_4FGL_J0159.0+3313_daily_bin1302.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.0+3313'

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.345e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/981819/ft1_filtered_4FGL_J0159.0+3313_daily_bin1302.fits
Spacecraft file(s): /scratch/kocevski/981819/ft2_4FGL_J0159.0+3313_daily_bin1302.fits
Exposure map: /scratch/kocevski/981819/expmap_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.fits
Exposure cube: /scratch/kocevski/981819/ltcube_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/981819/Model_4FGL_J0159.0+3313_daily_bin1302.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) = 192.575200379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66989E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    387.75       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19335E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8755.8       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17703E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .85936E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21424E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .15385E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25307E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11790E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .11110E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.1532       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .20560       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   190.9232     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     5045 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.988        .46376E-06** at limit **
   2  Prefactor     .10000E-03    1329.7        .74436E-05** at limit **
   3  Prefactor     .10000E-03    83.777       -.29650E-06** at limit **
   4  Prefactor    10000.0        6717.2       -.36114E-04** at limit **
   5  norm          .10000E-03    5.8500        .15588E-08** at limit **
   6  Prefactor    10000.0        7974.0       -.13178E-03** at limit **
   7  Prefactor    10000.0        6385.0        .21724E-03** at limit **
   8  norm         10000.0        1142.0        .12100E-04** at limit **
   9  Prefactor    10000.0        6610.4        .19188E-03** at limit **
  10  Prefactor     .10001E-03    1968.3       -.22584E-04** at limit **
  11  Prefactor     8743.4        7839.1       -.48194E-05    .69642E-05
  12  Prefactor    10000.0        9097.1        .13597E-03** at limit **
  13  Prefactor     .10013E-03    6283.6        .15278E-04** at limit **
  14  norm          .10118E-03    7385.6       -.15678E-04** at limit **
  15  Prefactor     .10002E-03    8784.5        .33454E-04** at limit **
  16  Prefactor    10000.0        1509.6       -.57878E-05** at limit **
  17  Prefactor     .10000E-03    55.103       -.11161E-06** at limit **
  18  norm          .10019E-03    814.17       -.40532E-05** at limit **
  19  Prefactor     .10004E-03    559.78        .35671E-05** at limit **
  20  norm          .10000E-03    956.88        .34338E-04** at limit **
  21  norm          .10000E-03    624.91       -.12276E-05** at limit **
  22  norm          .10000E-03    69.921        .81557E-06** at limit **
  23  Prefactor     .10000E-03    176.60       -.32047E-05** at limit **
  24  norm          .10000E-03    71.733       -.28444E-06** at limit **
  25  Prefactor     .10000E-03    273.39        .57569E-05** at limit **
  26  norm          4.1423        8.2809       -.19812E-06   -.28635E-04
  27  Prefactor     .10000E-03    86.233        .21246E-06** at limit **
  28  Normalizat    .10000E-01    .12418        .23205E-05** at limit **
  29  Prefactor     .20544        .15895       -.13556E-05   -.19581E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100007
  Prefactor  = 8743.42
  Prefactor  = 10000
  Prefactor  = 0.000100134
  norm       = 0.000101177
  Prefactor  = 0.000100023
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.000100189
  Prefactor  = 0.000100041
  norm       = 0.000100002
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.1423
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.205442
 **********
 **   18 **HESSE 
 **********

 FCN=   190.9232     FROM HESSE     STATUS=OK           533 CALLS     5578 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.225        .46904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6258.8        .21004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    86.341        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        6900.0        .20771E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8648        .32722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        7958.0        .10360E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        5916.5        .18151E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm         10000.0        1145.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        5102.5        .18339E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    2121.1        .20259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8743.4        7885.0        .60595E-04    .84607    
  12  Prefactor    10000.0        9115.5        .20838E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10013E-03    6341.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10118E-03    7431.1        .20859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    8813.8        .18259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6155.2        .20582E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.353        .10153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10019E-03    903.88        .20451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    582.21        .21460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    952.00        .22778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    763.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    71.724        .11455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    184.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    73.837        .11625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    277.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.1423        8.2916        .53971E-04   -1.5301    
  27  Prefactor     .10000E-03    89.338        .12790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .13083        .15485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .20544        .16007        .14898E-03   -1.2831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79892e-09
Minuit parameter uncertainties:
  1  2.35356e-05
  2  0.000171218
  3  0.000124312
  4  0.301973
  5  3.9507e-07
  6  1.02896
  7  5.79353
  8  0.00959517
  9  11.1096
  10  0.00781867
  11  4187.72
  12  0.466682
  13  0.0398462
  14  0.167411
  15  0.0323541
  16  0.023623
  17  1.60098e-05
  18  0.0265851
  19  0.00988872
  20  0.00285131
  21  0.00363983
  22  0.000158969
  23  0.000917404
  24  6.23104e-05
  25  0.00110103
  26  8.29394
  27  2.18917e-05
  28  3.76937e-07
  29  0.160416
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e+04  4.667e-01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  2.054e-01  1.604e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.000e-02  3.769e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.79
Ra Dec: 29.767 33.218
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.49e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981819/likelihoodResults_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.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) = -86.9006206615
delta logL = 277.823860449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = -86.9006206615
delta logL = 277.823860449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=  -86.90062     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       58 TOTAL
                     EDM=   .53E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .11297E-01    .13890E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=  -86.90062     FROM HESSE     STATUS=OK             5 CALLS       63 TOTAL
                     EDM=   .53E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .11297E-01    .30692E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32845e-18
Minuit parameter uncertainties:
  1  5.22546e-11
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981819': 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) = -86.9006206615
delta logL = 277.823860449

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
266        Index:  1.000e+01  5.225e-11  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  2.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 556.43
Ra Dec: 29.767 33.218
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 3.68e+06 +/- 6.44e-04
Energy Flux (Free Index): 4.11e+08 +/- 7.21e-02

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/981819/cmap_HighResolution_576806401_577065601_4FGL_J0159.0+3313_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.49e+04', comment='SUCCESS', energy_flux2='4.11e+08', dlogl='2.78e+02', photon_flux2='3.68e+06', job_status='DONE', time_completed='2021-08-14 23:59:45.996728', photon_index_error2='0.00', photon_index2='10.00', ts='0.79', fit_tolerance='1e-08', GAL='0.21', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='7.21e-02', EG='0.01', time_epoch_completed='1629010786.0', return_code='0', job_id='981819', GAL2='0.21', EG2='0.01', return_code2='0', photon_flux_error2='6.44e-04', ts2='556.43', photon_index='1.98' WHERE bin_id='1302' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:59:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 981819: <4FGL_J0159.0+3313_daily_bin1302> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1302> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 23:50:17 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:50:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 23:50:23 2021
Terminated at Sat Aug 14 23:59:46 2021
Results reported at Sat Aug 14 23:59:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1302 29.7665 33.2175 576806401 577065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.0+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   328.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            569 sec.

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

