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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1619
RA = 29.7665, Dec = 33.2175
tmin = 658972801, tmax = 659232001
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='143963', job_status='RUN', time_executed='2021-12-07 12:24:48.739504', time_epoch_executed='1638908688.74' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143963/ft1_4FGL_J0159.0+3313_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143963/ft1_4FGL_J0159.0+3313_daily_bin1619.fits outfile=/scratch/kocevski/143963/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1619.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=658972801.0 tmax=659232001.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.96
user 2.75
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.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/143963/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/143963/ft1_filtered_4FGL_J0159.0+3313_daily_bin1619.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143963/ft1_filtered_4FGL_J0159.0+3313_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/143963/ltcube_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.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/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits
.....................!
real 14.94
user 14.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143963/ft1_filtered_4FGL_J0159.0+3313_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/143963/ltcube_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.fits outfile=/scratch/kocevski/143963/expmap_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.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/143963/ltcube_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.fits
.....................!
real 192.21
user 186.04
sys 4.94

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/143963/ft1_filtered_4FGL_J0159.0+3313_daily_bin1619.fits scfile=/scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits outfile=/scratch/kocevski/143963/cmap_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.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 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143963/ft1_filtered_4FGL_J0159.0+3313_daily_bin1619.fits scfile=/scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits outfile=/scratch/kocevski/143963/cmap_HighResolution_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.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 0.57
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/143963/ft1_filtered_4FGL_J0159.0+3313_daily_bin1619.fits', '/scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits', expMap='/scratch/kocevski/143963/expmap_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.fits', expCube='/scratch/kocevski/143963/ltcube_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/143963/Model_4FGL_J0159.0+3313_daily_bin1619.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/143963/ft1_filtered_4FGL_J0159.0+3313_daily_bin1619.fits
Spacecraft file(s): /scratch/kocevski/143963/ft2_4FGL_J0159.0+3313_daily_bin1619.fits
Exposure map: /scratch/kocevski/143963/expmap_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.fits
Exposure cube: /scratch/kocevski/143963/ltcube_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/143963/Model_4FGL_J0159.0+3313_daily_bin1619.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) = 1286.07196574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9774       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49774E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30636E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.086       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    99.070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44878E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.892       1.0000         .10000E-03   10000.    
    18 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .70326E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.018       1.0000         .10000E-03   10000.    
    24 'norm      '    44.209       1.0000         .10000E-03   10000.    
    25 'Prefactor '    73.724       1.0000         .10000E-03   10000.    
    26 'norm      '    79.208       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .61313       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .33678       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0069       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=   1285.926     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     4227 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9755        3.3752       -.12244E-05   -.17556E-03
   2  Prefactor     .10000E-03    48.347       -.25237E-04** at limit **
   3  Prefactor     .10000E-03    6.3947        .10001E-06** at limit **
   4  Prefactor     .10000E-03    13.867        .47761E-06** at limit **
   5  norm          .10000E-03    1.6166       -.10849E-08** at limit **
   6  Prefactor     .10000E-03    94.968        .82500E-04** at limit **
   7  Prefactor     .10000E-03    179.48       -.12742E-04** at limit **
   8  norm          2.1449        2.0625       -.20744E-06    .43751E-03
   9  Prefactor     .28802E-02    108.31       -.11168E-04    .18837E-03
  10  Prefactor     24.070        37.625       -.87905E-05   -.19798E-05
  11  Prefactor     .10000E-03    3.6887        .14757E-06** at limit **
  12  Prefactor     99.013        96.741       -.49026E-04    .45408E-05
  13  Prefactor     .10000E-03    122.87       -.19038E-04** at limit **
  14  norm          1.6425        38.000        .60362E-05   -.32430E-04
  15  Prefactor     .10000E-03    667.63       -.21425E-03** at limit **
  16  Prefactor     .10000E-03    19.855       -.68086E-05** at limit **
  17  Prefactor     44.871        60.854       -.23286E-04    .80713E-04
  18  norm          .10000E-03    7.2355        .55710E-06** at limit **
  19  Prefactor     .10000E-03    23.522        .11700E-04** at limit **
  20  norm          .10000E-03    1.0436        .26439E-06** at limit **
  21  norm          .10000E-03    437.56       -.20424E-03** at limit **
  22  norm          .10000E-03    .67001        .12092E-06** at limit **
  23  Prefactor     21.988        77.567       -.10555E-04    .64544E-04
  24  norm          44.197        104.75        .44969E-05    .26942E-04
  25  Prefactor     73.505        421.33       -.25128E-03    .83548E-05
  26  norm          79.248        59.937        .32378E-04    .22867E-04
  27  Prefactor     .10000E-03    9795.0       -.15302E-01** at limit **
  28  Normalizat    .33689        .54130        .32709E-04    .18899E-03
  29  Prefactor     1.0071        .29337        .59044E-06    .11467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.97547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14485
  Prefactor  = 0.00288018
  Prefactor  = 24.0701
  Prefactor  = 0.0001
  Prefactor  = 99.0133
  Prefactor  = 0.0001
  norm       = 1.6425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.8706
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9883
  norm       = 44.1967
  Prefactor  = 73.505
  norm       = 79.2482
  Prefactor  = 0.000100003
  Normalizat = 0.336889
  Prefactor  = 1.00707
 **********
 **   18 **HESSE 
 **********

 FCN=   1285.926     FROM HESSE     STATUS=OK           547 CALLS     4774 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9755        3.3131        .52641E-04   -1.5309    
   2  Prefactor     .10000E-03    48.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3994        .88531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.872        .13046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6638        .88972E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    95.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    179.51        .21160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1449        2.0527        .47556E-04   -1.5415    
   9  Prefactor     .28802E-02    138.48        .10029       -1.5697    
  10  Prefactor     24.070        37.363        .81620E-04   -1.4726    
  11  Prefactor     .10000E-03    3.6906        .67252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     99.013        96.077        .20194E-03   -1.3715    
  13  Prefactor     .10000E-03    122.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6425        37.597        .32658E-03   -1.5452    
  15  Prefactor     .10000E-03    667.65        .21210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.869        .15607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.871        60.882        .29919E-03   -1.4367    
  18  norm          .10000E-03    7.2370        .94206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.523        .16994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0440        .35765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    437.56        .20977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .67498        .28473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.988        76.971        .85362E-04   -1.4770    
  24  norm          44.197        104.06        .60297E-04   -1.4377    
  25  Prefactor     73.505        421.05        .23380E-03   -1.3991    
  26  norm          79.248        59.903        .22562E-03   -1.3925    
  27  Prefactor     .10000E-03    9794.8        .23449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .33689        .52823        .49510E-03   -1.2070    
  29  Prefactor     1.0071        .30046        .17168E-03   -.92494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92337e-09
Minuit parameter uncertainties:
  1  3.31325
  2  9.05895e-05
  3  1.2177e-05
  4  2.15673e-05
  5  1.46513e-05
  6  9.2434e-05
  7  0.000146099
  8  2.05279
  9  1.24383
  10  37.3989
  11  2.65535e-05
  12  96.2285
  13  6.9961e-06
  14  15.7273
  15  0.000349465
  16  0.000196605
  17  60.9663
  18  0.000124556
  19  3.3499e-06
  20  2.62061e-05
  21  0.000276402
  22  1.03675e-05
  23  77.3218
  24  104.49
  25  355.724
  26  59.9488
  27  0.0156966
  28  0.536329
  29  0.300957
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  9.901e+01  9.623e+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:  1.007e+00  3.010e-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:  3.369e-01  5.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 29.767 33.218
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 1.17e-07
Energy Flux (Fixed Index): 8.62e-05 +/- 8.38e-05

TS (Fixed Index): 2.63
Ra Dec: 29.767 33.218
Photon Flux Upper Limit: 4.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143963/likelihoodResults_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.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) = 1285.9160293
delta logL = 0.0104007591362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1285.89640083
delta logL = 0.0300292283798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.521       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2252       1.0000          .0000       10.000    
     3 'Normalizat'    .29805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0190       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1285.896     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      279 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.593        147.18        .23572E-03   -.19726E-04
   2  Index         2.2246        1.1520        .33247E-02   -.10515E-03
   3  Normalizat    .29821        .53952        .52499E-03   -.69934E-04
   4  Prefactor     1.0190        .30495        .17066E-03   -.10575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.593
  Index      = 2.22464
  Normalizat = 0.298214
  Prefactor  = 1.01897
 **********
 **   18 **HESSE 
 **********

 FCN=   1285.896     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.593        127.46        .94287E-05   -1.4002    
   2  Index         2.2246        .99756        .13299E-03   -.58845    
   3  Normalizat    .29821        .52949        .21000E-04   -1.2294    
   4  Prefactor     1.0190        .30244        .68263E-05   -.92100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00472e-10
Minuit parameter uncertainties:
  1  127.944
  2  1.00738
  3  0.538766
  4  0.302946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143963': 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) = 1285.89640063
delta logL = 0.0300294325045

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  7.259e+01  1.279e+02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.225e+00  1.007e+00  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:  1.019e+00  3.029e-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:  2.982e-01  5.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 29.767 33.218
Photon Index (Free Index): 2.22 +/- 1.01
Photon Flux (Free Index): 1.67e-07 +/- 2.55e-07
Energy Flux (Free Index): 7.17e-05 +/- 7.42e-05

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/143963/cmap_HighResolution_658972801_659232001_4FGL_J0159.0+3313_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-02', comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='7.17e-05', photon_flux_error='1.17e-07', dlogl='3.00e-02', energy_flux='8.62e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-12-07 12:31:57.182174', photon_index_error2='1.01', photon_index2='2.22', ts='2.63', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='4.16e-07', energy_flux_error2='7.42e-05', EG='0.34', time_epoch_completed='1638909117.18', return_code='0', job_id='143963', GAL2='1.02', EG2='0.30', return_code2='0', energy_flux_error='8.38e-05', photon_flux_error2='2.55e-07', ts2='2.68', photon_index='1.98' WHERE bin_id='1619' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:31:57 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 143963: <4FGL_J0159.0+3313_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1619> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:20:30 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:24:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:24:36 2021
Terminated at Tue Dec  7 12:31:57 2021
Results reported at Tue Dec  7 12:31:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1619 29.7665 33.2175 658972801 659232001 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 :                                   426.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   441 sec.
    Turnaround time :                            687 sec.

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

