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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1171
RA = 29.7665, Dec = 33.2175
tmin = 542851201, tmax = 543110401
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='980327', job_status='RUN', time_executed='2021-08-14 23:48:15.040783', time_epoch_executed='1629010095.04' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980327

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980327/ft1_4FGL_J0159.0+3313_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980327/ft2_4FGL_J0159.0+3313_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980327/ft1_4FGL_J0159.0+3313_daily_bin1171.fits outfile=/scratch/kocevski/980327/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1171.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=542851201.0 tmax=543110401.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 6.14
user 0.62
sys 5.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980327/ft2_4FGL_J0159.0+3313_daily_bin1171.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/980327/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/980327/ft1_filtered_4FGL_J0159.0+3313_daily_bin1171.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 5.70
user 0.32
sys 5.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980327/ft1_filtered_4FGL_J0159.0+3313_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/980327/ft2_4FGL_J0159.0+3313_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/980327/ltcube_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.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/980327/ft2_4FGL_J0159.0+3313_daily_bin1171.fits
.....................!
real 7.94
user 1.61
sys 6.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980327/ft1_filtered_4FGL_J0159.0+3313_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/980327/ft2_4FGL_J0159.0+3313_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/980327/ltcube_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.fits outfile=/scratch/kocevski/980327/expmap_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.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/980327/ltcube_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.fits
.....................!
real 198.44
user 186.09
sys 11.77

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/980327/ft1_filtered_4FGL_J0159.0+3313_daily_bin1171.fits scfile=/scratch/kocevski/980327/ft2_4FGL_J0159.0+3313_daily_bin1171.fits outfile=/scratch/kocevski/980327/cmap_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.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 5.71
user 0.38
sys 5.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980327/ft1_filtered_4FGL_J0159.0+3313_daily_bin1171.fits scfile=/scratch/kocevski/980327/ft2_4FGL_J0159.0+3313_daily_bin1171.fits outfile=/scratch/kocevski/980327/cmap_HighResolution_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.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 5.69
user 0.38
sys 5.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41310E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7176       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.031       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    956.91       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12477E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11633E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    82.190       1.0000         .10000E-03   10000.    
    22 'norm      '    .55001       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    29.226       1.0000         .10000E-03   10000.    
    25 'Prefactor '    77.692       1.0000         .10000E-03   10000.    
    26 'norm      '    20.024       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80250       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92207       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=   1109.615     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     4197 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5200        5.8191        .26924E-07   -.13154E-04
   2  Prefactor     .10000E-03    333.19       -.16427E-06** at limit **
   3  Prefactor     .10000E-03    9.0358       -.57254E-07** at limit **
   4  Prefactor     .10000E-03    54.091       -.66165E-08** at limit **
   5  norm          .10000E-03    2.6289       -.19818E-06** at limit **
   6  Prefactor     .10000E-03    62.599       -.26607E-07** at limit **
   7  Prefactor     .10000E-03    209.21        .10334E-06** at limit **
   8  norm          2.7176        2.2267        .17594E-07   -.68330E-04
   9  Prefactor     38.652        39.453        .12563E-07   -.86258E-05
  10  Prefactor     60.922        52.556       -.57507E-07   -.51849E-04
  11  Prefactor     .10000E-03    4.4250       -.30043E-06** at limit **
  12  Prefactor     .10000E-03    27.208       -.10576E-06** at limit **
  13  Prefactor     .10000E-03    104.83       -.39271E-07** at limit **
  14  norm          .10000E-03    11.371        .54452E-08** at limit **
  15  Prefactor     957.92        873.92        .78821E-06    .49329E-05
  16  Prefactor     .10000E-03    12.029       -.79020E-07** at limit **
  17  Prefactor     .10000E-03    37.651        .21403E-05** at limit **
  18  norm          20.592        14.302       -.15263E-05   -.51217E-03
  19  Prefactor     .10000E-03    26.386       -.35757E-07** at limit **
  20  norm          .10000E-03    3.6375        .18840E-05** at limit **
  21  norm          82.017        408.85       -.73264E-06   -.21402E-05
  22  norm          .55002        .71866       -.12218E-07    .45130E-04
  23  Prefactor     .10001E-03    65.040        .41927E-05** at limit **
  24  norm          29.227        23.717       -.24959E-06    .67230E-05
  25  Prefactor     77.814        162.75       -.25441E-05   -.22203E-04
  26  norm          20.028        9.0823       -.21884E-07   -.10059E-03
  27  Prefactor     .10000E-03    87.170       -.18534E-07** at limit **
  28  Normalizat    .80162        .65183       -.17761E-05   -.55456E-04
  29  Prefactor     .92258        .32772        .87877E-06   -.11203E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.52002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7176
  Prefactor  = 38.6518
  Prefactor  = 60.9216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 957.915
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 20.5916
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 82.0169
  norm       = 0.550023
  Prefactor  = 0.000100009
  norm       = 29.2273
  Prefactor  = 77.8139
  norm       = 20.0279
  Prefactor  = 0.0001
  Normalizat = 0.801615
  Prefactor  = 0.922578
 **********
 **   18 **HESSE 
 **********

 FCN=   1109.615     FROM HESSE     STATUS=OK           537 CALLS     4734 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5200        5.8249        .78660E-04   -1.5238    
   2  Prefactor     .10000E-03    333.56        .21249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0370        .97812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6253        .52682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    209.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7176        2.2254        .43544E-04   -1.5378    
   9  Prefactor     38.652        39.466        .64448E-04   -1.4464    
  10  Prefactor     60.922        52.694        .25680E-03   -1.4145    
  11  Prefactor     .10000E-03    4.4112        .68301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.205        .16978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    104.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.510        .10968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     957.92        872.94        .67989E-04   -.94146    
  16  Prefactor     .10000E-03    12.057        .11284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.592        15.037        .88291E-04   -1.4800    
  19  Prefactor     .10000E-03    26.453        .16716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.1669        .11502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          82.017        410.62        .22152E-03   -1.3894    
  22  norm          .55002        .70690        .31331E-04   -1.5560    
  23  Prefactor     .10001E-03    64.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          29.227        23.651        .74110E-04   -1.4626    
  25  Prefactor     77.814        163.46        .22780E-03   -1.3941    
  26  norm          20.028        9.0845        .63515E-04   -1.4813    
  27  Prefactor     .10000E-03    87.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80162        .72363        .41438E-03   -1.0001    
  29  Prefactor     .92258        .36771        .20877E-03   -.95357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09744e-10
Minuit parameter uncertainties:
  1  5.82548
  2  0.000162087
  3  1.12061e-05
  4  5.35848e-05
  5  1.96806e-05
  6  2.97908e-05
  7  9.0562e-05
  8  2.22544
  9  39.493
  10  52.7347
  11  4.08713e-05
  12  1.43065e-06
  13  0.000164405
  14  6.35173e-06
  15  886.278
  16  2.20551e-05
  17  0.000797291
  18  15.0394
  19  5.51662e-05
  20  9.77155e-05
  21  371.172
  22  0.706906
  23  0.0014982
  24  23.659
  25  164.414
  26  9.08514
  27  2.14092e-05
  28  0.732591
  29  0.368704
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.431e-06  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:  9.226e-01  3.687e-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:  8.016e-01  7.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/980327/likelihoodResults_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.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) = 1109.61522925
delta logL = -4.62171396975e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1109.61522522
delta logL = -5.90848912907e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0946       1.0000          .0000       10.000    
     3 'Normalizat'    .80183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92247       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=   1109.615     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10158E-03    107.00        .16035E-02** at limit **
   2  Index         2.0291        7.3822        .50000        .15075E-04
   3  Normalizat    .80162        .31785E-01    .41439E-03   -.33333E-05
   4  Prefactor     .92258        .17217E-01    .20877E-03   -.69295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101583
  Index      = 2.02907
  Normalizat = 0.801616
  Prefactor  = 0.922579
 **********
 **   18 **HESSE 
 **********

 FCN=   1109.615     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10158E-03    461.55        .32070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0291        5.8688        .50000       -.63625    
   3  Normalizat    .80162        .67427E-01    .16576E-04   -1.0001    
   4  Prefactor     .92258        .36525E-01    .83508E-05   -.95357    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.77541e-09
Minuit parameter uncertainties:
  1  0.0544775
  2  308.363
  3  0.0674344
  4  0.0365262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980327': 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) = 1109.61522481
delta logL = -1.84855480256e-07

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.016e-04  5.448e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.029e+00  3.084e+02  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:  9.226e-01  3.653e-02  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:  8.016e-01  6.743e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.767 33.218

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/980327/cmap_HighResolution_542851201_543110401_4FGL_J0159.0+3313_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-08-14 23:55:41.109485', job_id='980327', GAL2='0.92', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629010541.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-1.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1171' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 980327: <4FGL_J0159.0+3313_daily_bin1171> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 23:45:34 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:46:38 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:46:38 2021
Terminated at Sat Aug 14 23:55:43 2021
Results reported at Sat Aug 14 23:55:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1171 29.7665 33.2175 542851201 543110401 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 :                                   531.79 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   544 sec.
    Turnaround time :                            609 sec.

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

