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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1603
RA = 29.7665, Dec = 33.2175
tmin = 654825601, tmax = 655084801
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='912734', job_status='RUN', time_executed='2021-10-05 00:04:28.264886', time_epoch_executed='1633417468.26' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912734

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912734/ft1_4FGL_J0159.0+3313_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912734/ft1_4FGL_J0159.0+3313_daily_bin1603.fits outfile=/scratch/kocevski/912734/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1603.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=654825601.0 tmax=655084801.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.26
user 2.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912734/ft1_filtered_4FGL_J0159.0+3313_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/912734/ltcube_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.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/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits
.....................!
real 13.17
user 12.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912734/ft1_filtered_4FGL_J0159.0+3313_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/912734/ltcube_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.fits outfile=/scratch/kocevski/912734/expmap_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.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/912734/ltcube_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.fits
.....................!
real 192.84
user 186.87
sys 4.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/912734/ft1_filtered_4FGL_J0159.0+3313_daily_bin1603.fits scfile=/scratch/kocevski/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits outfile=/scratch/kocevski/912734/cmap_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912734/ft1_filtered_4FGL_J0159.0+3313_daily_bin1603.fits scfile=/scratch/kocevski/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits outfile=/scratch/kocevski/912734/cmap_HighResolution_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912734/ft1_filtered_4FGL_J0159.0+3313_daily_bin1603.fits', '/scratch/kocevski/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits', expMap='/scratch/kocevski/912734/expmap_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.fits', expCube='/scratch/kocevski/912734/ltcube_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912734/Model_4FGL_J0159.0+3313_daily_bin1603.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/912734/ft1_filtered_4FGL_J0159.0+3313_daily_bin1603.fits
Spacecraft file(s): /scratch/kocevski/912734/ft2_4FGL_J0159.0+3313_daily_bin1603.fits
Exposure map: /scratch/kocevski/912734/expmap_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.fits
Exposure cube: /scratch/kocevski/912734/ltcube_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912734/Model_4FGL_J0159.0+3313_daily_bin1603.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 435.216463468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 433.328792145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7160       1.0000         .10000E-03   10000.    
     5 'norm      '    18.192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8616       1.0000         .10000E-03   10000.    
     8 'norm      '    .13542E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9127       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12784E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .63254E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0668       1.0000         .10000E-03   10000.    
    14 'norm      '    .88631E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0785       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .78668E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11001E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83052E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6566       1.0000         .10000E-03   10000.    
    21 'norm      '    815.62       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.2977       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .62362       1.0000         .10000E-03   10000.    
    26 'norm      '    27.444       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1443       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.9665       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .25593E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   433.2847     FROM MIGRAD    STATUS=CONVERGED    338 CALLS      671 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9424        1.0377         .0000         .0000    
   2  Prefactor     2.6671        1.0187         .0000         .0000    
   3  Prefactor     5.8960        14.675        .37390E-05   -.67332E-03
   4  Prefactor     2.7160        1.0180         .0000         .0000    
   5  norm          493.20        1789.6        .56555E-04    .41515E-03
   6  Prefactor     .74946E-01    24.698       -.60682E-05    .27217E-03
   7  Prefactor     8.1941        4.1538       -.87432E-06    .55249E-03
   8  norm          .10000E-03    38.639        .39506E-07** at limit **
   9  Prefactor     .10000E-03    345.92        .21997E-05** at limit **
  10  Prefactor     .10002E-03    818.85       -.33243E-07** at limit **
  11  Prefactor     .10000E-03    59.415        .29426E-05** at limit **
  12  Prefactor     .10000E-03    222.84       -.78627E-07** at limit **
  13  Prefactor     .10000E-03    476.18        .21995E-04** at limit **
  14  norm          .10000E-03    23.309       -.22806E-07** at limit **
  15  Prefactor     .10055E-03    1646.5       -.79791E-05** at limit **
  16  Prefactor     .10000E-03    49.601       -.15797E-07** at limit **
  17  Prefactor     .10000E-03    44.949       -.22297E-07** at limit **
  18  norm          .10000E-03    22.068       -.12132E-06** at limit **
  19  Prefactor     .10000E-03    35.666       -.13829E-07** at limit **
  20  norm          3.6305        3.2301        .25204E-07   -.93732E-04
  21  norm          832.69        43.595        .96897E-06   -.19500E-01
  22  norm          .10000E-03    .40618        .12963E-08** at limit **
  23  Prefactor     .10000E-03    10.651        .22429E-08** at limit **
  24  norm          6.2497        14.176       -.57449E-06   -.52078E-04
  25  Prefactor     .10000E-03    143.28       -.25257E-06** at limit **
  26  norm          27.961        14.651       -.16276E-06    .38324E-04
  27  Prefactor     .10020E-03    7693.9       -.42630E-04** at limit **
  28  Normalizat    1.9149        .71413       -.46832E-05    .75529E-05
  29  Prefactor     .19136E-10    1.2866       -.42646E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94242
  Prefactor  = 2.66705
  Prefactor  = 5.89599
  Prefactor  = 2.71597
  norm       = 493.198
  Prefactor  = 0.0749461
  Prefactor  = 8.19405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63049
  norm       = 832.692
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24973
  Prefactor  = 0.0001
  norm       = 27.9609
  Prefactor  = 0.000100198
  Normalizat = 1.91486
  Prefactor  = 1.91364e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   433.2847     FROM HESSE     STATUS=FAILED         9 CALLS      680 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          569.94        567.86         .0000       -1.5429    
   2  Prefactor     2.6671        1.0187         .0000       -1.5381    
   3  Prefactor     5.8960        2.0471        .37390E-05   -1.5222    
   4  Prefactor     2.7160        1.0180         .0000       -1.5378    
   5  norm          493.20        5.0833        .56555E-04   -1.1229    
   6  Prefactor     .74946E-01    .12341       -.60682E-05   -1.5653    
   7  Prefactor     8.1941        .91279       -.87432E-06   -1.5135    
   8  norm          .10000E-03    .20571        .39506E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .65000E-01    .21997E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    .21875       -.33243E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20642        .29426E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .21783       -.78627E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .34769        .21995E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .27143       -.22806E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10055E-03    .83501E-01   -.79791E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .21404       -.15797E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20602       -.22297E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20571       -.12132E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .27247       -.13829E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6305        1.0061        .25204E-07   -1.5327    
  21  norm          832.69        1.0095        .96897E-06   -.98534    
  22  norm          .10000E-03    .20571        .12963E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571        .22429E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.2497        .99936       -.57449E-06   -1.5208    
  25  Prefactor     .10000E-03    .34606       -.25257E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          27.961        1.0095       -.16276E-06   -1.4650    
  27  Prefactor     .10020E-03    .29408       -.42630E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.9149        1.0112       -.46832E-05   -.66702    
  29  Prefactor     .19136E-10    .25504       -.42646E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.94678e-11
Minuit parameter uncertainties:
  1  1.03771
  2  1.01875
  3  2.04714
  4  1.01804
  5  5.08328
  6  0.123412
  7  0.912789
  8  3.41535e-07
  9  4.74125e-06
  10  0.000116846
  11  2.5283e-05
  12  8.59987e-07
  13  5.9716e-05
  14  3.38612e-07
  15  0.000427992
  16  2.50586e-08
  17  9.75781e-08
  18  6.41625e-06
  19  8.71496e-09
  20  1.00606
  21  1.00947
  22  4.23683e-08
  23  1.11086e-07
  24  0.99936
  25  9.64595e-06
  26  1.00951
  27  0.00048205
  28  1.02277
  29  4.43745e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 433.284662783

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  8.600e-07  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.914e-11  4.437e-06  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.915e+00  1.023e+00  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.60e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912734/likelihoodResults_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.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) = 433.284684282
delta logL = -2.14989389065e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 433.284666043
delta logL = -3.259194159e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1507       1.0000          .0000       10.000    
     3 'Normalizat'    1.9152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74784E-05   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=   433.2847     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      266 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    149.89        .90712E-02** at limit **
   2  Index         2.1069        6.8283        .50000        .19903E-05
   3  Normalizat    1.9149        .22293E-01    .64033E-01   -.20147E-04
   4  Prefactor     .52825E-09    .82693E-03    .16619    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100031
  Index      = 2.10689
  Normalizat = 1.91485
  Prefactor  = 5.28246e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   433.2847     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    730.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1069        8.4923        .50000       -.61704    
   3  Normalizat    1.9149        .49835E-01    .28310E-03   -.66702    
   4  Prefactor     .52825E-09    .10480E-01    .90640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25594e-08
Minuit parameter uncertainties:
  1  0.00963145
  2  424.167
  3  0.049836
  4  4.70664e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912734': 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) = 433.284662835
delta logL = -5.16708951181e-08

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  9.631e-03  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.107e+00  4.242e+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:  5.282e-10  4.707e-06  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.915e+00  4.984e-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/912734/cmap_HighResolution_654825601_655084801_4FGL_J0159.0+3313_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-01', job_status='DONE', photon_flux_upper_limit='1.60e-06', time_completed='2021-10-05 00:09:58.725759', job_id='912734', GAL2='0.00', fit_tolerance='1e-08', EG2='1.91', EG='1.91', time_epoch_completed='1633417798.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-5.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1603' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 912734: <4FGL_J0159.0+3313_daily_bin1603> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:00:34 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:00:35 2021
Terminated at Tue Oct  5 00:09:59 2021
Results reported at Tue Oct  5 00:09:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1603 29.7665 33.2175 654825601 655084801 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 :                                   331.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             215.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            565 sec.

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

