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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1480
RA = 29.8858, Dec = 10.7737
tmin = 622944001, tmax = 623203201
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='3114', job_status='RUN', time_executed='2021-08-15 00:53:37.650881', time_epoch_executed='1629014017.65' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3114/ft1_4FGL_J0159.5+1046_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3114/ft1_4FGL_J0159.5+1046_daily_bin1480.fits outfile=/scratch/kocevski/3114/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1480.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=622944001.0 tmax=623203201.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 10.86
user 2.81
sys 7.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.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/3114/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.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 8.16
user 0.35
sys 7.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/3114/ltcube_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.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/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits
.....................!
real 24.69
user 15.74
sys 8.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/3114/ltcube_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.fits outfile=/scratch/kocevski/3114/expmap_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.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/3114/ltcube_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.fits
.....................!
real 202.63
user 187.24
sys 13.98

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits scfile=/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits outfile=/scratch/kocevski/3114/cmap_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.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.8858 yref=10.7737 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 8.25
user 0.38
sys 7.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits scfile=/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits outfile=/scratch/kocevski/3114/cmap_HighResolution_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.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.8858 yref=10.7737 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 7.47
user 0.40
sys 7.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3114/Model_4FGL_J0159.5+1046_daily_bin1480.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/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits....................................!
real 30.85
user 18.13
sys 11.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits', '/scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits', expMap='/scratch/kocevski/3114/expmap_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.fits', expCube='/scratch/kocevski/3114/ltcube_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3114/Model_4FGL_J0159.5+1046_daily_bin1480.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/3114/ft1_filtered_4FGL_J0159.5+1046_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/3114/ft2_4FGL_J0159.5+1046_daily_bin1480.fits
Exposure map: /scratch/kocevski/3114/expmap_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.fits
Exposure cube: /scratch/kocevski/3114/ltcube_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3114/Model_4FGL_J0159.5+1046_daily_bin1480.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) = 433.286634862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38469E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24946E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.666       1.0000         .10000E-03   10000.    
     8 'norm      '    19.084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5874       1.0000         .10000E-03   10000.    
    11 'Prefactor '    204.60       1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14711E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.886       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    23.081       1.0000         .10000E-03   10000.    
    23 'Prefactor '    97.755       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .28217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   432.8591     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     2615 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35739E-03    .33460       -.47369E-05** at limit **
   2  Prefactor     .13336E-03    2.8283       -.31572E-04** at limit **
   3  Prefactor     .10155E-03    35.773       -.90820E-04** at limit **
   4  Prefactor     .10000E-03    22.880        .21967E-04** at limit **
   5  norm          .10018E-03    28.200       -.49294E-04** at limit **
   6  Prefactor     .10000E-03    19.062       -.11346E-05** at limit **
   7  Prefactor     41.664        1.0939        .75738E-06    .87446E-04
   8  norm          19.084        1.0223        .64252E-07    .17689E-03
   9  Prefactor     .10000E-03    4.5772       -.57072E-06** at limit **
  10  norm          1.5869        2.7794       -.22752E-06   -.21960E-03
  11  Prefactor     204.61        2.4163        .16248E-05   -.33171E-02
  12  Prefactor     60.762        2.3117        .28430E-05   -.17917E-02
  13  Prefactor     2.6676        2.0646        .67994E-05    .18026E-03
  14  Prefactor     .10462E-03    76.153        .10589E-03** at limit **
  15  Prefactor     .10000E-03    24.838       -.25930E-04** at limit **
  16  Prefactor     .10436E-03    36.942        .67446E-04** at limit **
  17  Prefactor     .10000E-03    11.818        .57080E-07** at limit **
  18  Prefactor     83.888        1.3014        .83977E-06   -.47934E-04
  19  norm          .10000E-03    2.1650        .78777E-07** at limit **
  20  Prefactor     .10285E-03    352.55       -.31679E-03** at limit **
  21  Prefactor     .10004E-03    43.581        .48167E-04** at limit **
  22  norm          23.091        1.3803       -.79874E-06    .38715E-03
  23  Prefactor     97.758        1.2035        .67475E-06   -.53966E-03
  24  Normalizat    .10000E-01    1.1161       -.20967E-05** at limit **
  25  Prefactor     .28221        .16492       -.42931E-05    .15712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000357393
  Prefactor  = 0.000133364
  Prefactor  = 0.000101554
  Prefactor  = 0.000100005
  norm       = 0.000100177
  Prefactor  = 0.000100002
  Prefactor  = 41.6637
  norm       = 19.0843
  Prefactor  = 0.000100001
  norm       = 1.58692
  Prefactor  = 204.609
  Prefactor  = 60.762
  Prefactor  = 2.66761
  Prefactor  = 0.000104623
  Prefactor  = 0.000100001
  Prefactor  = 0.000104357
  Prefactor  = 0.0001
  Prefactor  = 83.8883
  norm       = 0.0001
  Prefactor  = 0.000102847
  Prefactor  = 0.000100039
  norm       = 23.0906
  Prefactor  = 97.7576
  Normalizat = 0.01
  Prefactor  = 0.28221
 **********
 **   18 **HESSE 
 **********

 FCN=   432.8591     FROM HESSE     STATUS=OK           473 CALLS     3088 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35739E-03    9772.9        .10641E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13336E-03    1358.8        .10733E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10155E-03    62.646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10018E-03    69.121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.664        25.164        .15526E-02   -1.4416    
   8  norm          19.084        21.595        .22921E-02   -1.4834    
   9  Prefactor     .10000E-03    4.5764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5869        3.0131        .84222E-02   -1.5456    
  11  Prefactor     204.61        132.41        .70638E-03   -1.2837    
  12  Prefactor     60.762        168.93        .12869E-02   -1.4147    
  13  Prefactor     2.6676        108.92        .62536E-02   -1.5381    
  14  Prefactor     .10462E-03    114.80        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10436E-03    87.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     83.888        50.693        .10965E-02   -1.3874    
  19  norm          .10000E-03    2.1034        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10285E-03    372.16        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    43.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          23.091        25.088        .20844E-02   -1.4747    
  23  Prefactor     97.758        134.99        .10164E-02   -1.3727    
  24  Normalizat    .10000E-01    .96269        .17936       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .28221        .28516        .36523E-01   -1.2332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78803e-07
Minuit parameter uncertainties:
  1  4.35167
  2  0.436128
  3  0.0197553
  4  0.000665827
  5  0.00701344
  6  0.000393152
  7  25.1702
  8  21.6042
  9  0.0001044
  10  3.01336
  11  132.599
  12  170.294
  13  34.1569
  14  0.0461629
  15  0.000234432
  16  0.0390619
  17  5.39303e-05
  18  50.7187
  19  8.54455e-06
  20  0.0655121
  21  0.00262551
  22  25.0995
  23  135.416
  24  1.1354e-05
  25  0.286586
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  3.932e-04  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  2.822e-01  2.866e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.000e-02  1.135e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 4.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/3114/likelihoodResults_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.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) = 432.859331088
delta logL = -0.000229473556487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 432.859103886
delta logL = -2.27142447784e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2319       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   432.8591     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    186.27        .77806E-03** at limit **
   2  Index         2.1656        6.0628        .50000        .19427E-04
   3  Normalizat    .10000E-01    .28975E-01    .10468E-01** at limit **
   4  Prefactor     .28221        .25159E-01    .19522E-03    .83822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102121
  Index      = 2.16557
  Normalizat = 0.01
  Prefactor  = 0.282208
 **********
 **   18 **HESSE 
 **********

 FCN=   432.8591     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10212E-03    668.89        .15561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1656        5.6068        .50000       -.60272    
   3  Normalizat    .10000E-01    .11329        .20936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .28221        .49748E-01    .39044E-04   -1.2332    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79014e-08
Minuit parameter uncertainties:
  1  0.0762042
  2  552.585
  3  5.32194e-06
  4  0.0497559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3114': 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) = 432.859102329
delta logL = -7.15350381597e-07

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.021e-04  7.620e-02  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.166e+00  5.526e+02  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  2.822e-01  4.976e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.000e-02  5.322e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.886 10.774

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/3114/cmap_HighResolution_622944001_623203201_4FGL_J0159.5+1046_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-02', job_status='DONE', photon_flux_upper_limit='4.92e-07', time_completed='2021-08-15 01:01:54.312816', job_id='3114', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629014514.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='-7.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1480' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 01:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 3114: <4FGL_J0159.5+1046_daily_bin1480> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1480> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 00:50:35 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:51:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 00:51:15 2021
Terminated at Sun Aug 15 01:01:56 2021
Results reported at Sun Aug 15 01:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1480 29.8858 10.7737 622944001 623203201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.5+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   584.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            681 sec.

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

