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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1620
RA = 29.7665, Dec = 33.2175
tmin = 659232001, tmax = 659491201
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='143964', job_status='RUN', time_executed='2021-12-07 12:26:55.827455', time_epoch_executed='1638908815.83' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143964/ft1_4FGL_J0159.0+3313_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143964/ft2_4FGL_J0159.0+3313_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143964/ft1_4FGL_J0159.0+3313_daily_bin1620.fits outfile=/scratch/kocevski/143964/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1620.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=659232001.0 tmax=659491201.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.84
user 2.62
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143964/ft1_filtered_4FGL_J0159.0+3313_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/143964/ft2_4FGL_J0159.0+3313_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/143964/ltcube_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.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/143964/ft2_4FGL_J0159.0+3313_daily_bin1620.fits
.....................!
real 15.86
user 15.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143964/ft1_filtered_4FGL_J0159.0+3313_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/143964/ft2_4FGL_J0159.0+3313_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/143964/ltcube_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.fits outfile=/scratch/kocevski/143964/expmap_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.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/143964/ltcube_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.fits
.....................!
real 194.29
user 189.09
sys 4.82

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/143964/ft1_filtered_4FGL_J0159.0+3313_daily_bin1620.fits scfile=/scratch/kocevski/143964/ft2_4FGL_J0159.0+3313_daily_bin1620.fits outfile=/scratch/kocevski/143964/cmap_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143964/ft1_filtered_4FGL_J0159.0+3313_daily_bin1620.fits scfile=/scratch/kocevski/143964/ft2_4FGL_J0159.0+3313_daily_bin1620.fits outfile=/scratch/kocevski/143964/cmap_HighResolution_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.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.55
user 0.39
sys 0.15

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1025.07319028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9184       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12260E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.124       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17784E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .61566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24473E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50784E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.267       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .21946E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.6737       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .24779       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0575       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=   1024.811     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3768 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9232        3.6653        .30755E-06    .62415E-04
   2  Prefactor     .10000E-03    34.257       -.42451E-06** at limit **
   3  Prefactor     .10000E-03    37.260        .39959E-05** at limit **
   4  Prefactor     51.878        47.066        .39215E-06    .30985E-04
   5  norm          .10000E-03    2.4547       -.61472E-06** at limit **
   6  Prefactor     .10000E-03    94.465        .14408E-05** at limit **
   7  Prefactor     .10000E-03    248.18       -.21093E-04** at limit **
   8  norm          .61608        1.4603       -.62013E-06   -.19613E-03
   9  Prefactor     .10000E-03    56.281        .58104E-06** at limit **
  10  Prefactor     .10000E-03    37.821       -.35329E-06** at limit **
  11  Prefactor     .10000E-03    52.004        .79950E-06** at limit **
  12  Prefactor     .10000E-03    85.240       -.17358E-05** at limit **
  13  Prefactor     .10001E-03    6374.1       -.12966E-04** at limit **
  14  norm          .10000E-03    110.92       -.57159E-05** at limit **
  15  Prefactor     .10000E-03    1265.1       -.17789E-04** at limit **
  16  Prefactor     78.278        56.830       -.43391E-06   -.36771E-05
  17  Prefactor     .10000E-03    31.500        .34370E-07** at limit **
  18  norm          23.055        47.411        .22228E-05   -.24569E-05
  19  Prefactor     .10000E-03    89.129       -.28487E-06** at limit **
  20  norm          .10000E-03    3.9075        .14753E-06** at limit **
  21  norm          .10000E-03    2226.6        .73167E-05** at limit **
  22  norm          .10000E-03    1.1824        .60619E-08** at limit **
  23  Prefactor     .10000E-03    65.428       -.26332E-06** at limit **
  24  norm          .10000E-03    79.852       -.39080E-06** at limit **
  25  Prefactor     .10000E-03    374.35       -.18126E-05** at limit **
  26  norm          .10000E-03    135.56        .80139E-06** at limit **
  27  Prefactor    10000.0        6975.4        .99838E-04** at limit **
  28  Normalizat    .24558        .55041        .33095E-05   -.52369E-05
  29  Prefactor     1.0582        .32494        .99465E-06    .38338E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.92325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.8782
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.616082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 78.278
  Prefactor  = 0.0001
  norm       = 23.0549
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.24558
  Prefactor  = 1.0582
 **********
 **   18 **HESSE 
 **********

 FCN=   1024.811     FROM HESSE     STATUS=OK           537 CALLS     4305 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9232        3.6756        .40018E-04   -1.5182    
   2  Prefactor     .10000E-03    34.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     51.878        47.056        .55551E-04   -1.4266    
   5  norm          .10000E-03    2.4867        .48945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    98.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    245.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .61608        1.4062        .58431E-03   -1.5551    
   9  Prefactor     .10000E-03    57.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    55.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    88.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    6389.4        .18289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    126.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1315.2        .19181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     78.278        58.065        .45393E-04   -1.3936    
  17  Prefactor     .10000E-03    31.919        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.055        47.435        .83430E-04   -1.4747    
  19  Prefactor     .10000E-03    92.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9179        .61804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2263.1        .20144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1831        .34007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    67.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    82.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    436.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    143.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        6992.6        .64421E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .24558        .55524        .57791E-03   -1.2625    
  29  Prefactor     1.0582        .32678        .17133E-03   -.90814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40231e-11
Minuit parameter uncertainties:
  1  3.67572
  2  2.30081e-05
  3  0.000135923
  4  47.0895
  5  4.64548e-06
  6  0.000152706
  7  0.00117732
  8  1.40629
  9  8.86837e-05
  10  9.85227e-06
  11  0.00011942
  12  8.09146e-05
  13  0.0115233
  14  0.000823277
  15  0.00153636
  16  58.1067
  17  2.28939e-06
  18  47.5124
  19  5.97651e-05
  20  6.08281e-06
  21  0.0013376
  22  7.16571e-07
  23  0.000188426
  24  0.000117796
  25  0.000317333
  26  9.59306e-05
  27  0.353321
  28  0.56847
  29  0.327396
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  8.091e-05  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.058e+00  3.274e-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.456e-01  5.685e-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: 4.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143964/likelihoodResults_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.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) = 1024.81119571
delta logL = -5.37726552921e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1024.81114199
delta logL = -5.59853106097e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1233       1.0000          .0000       10.000    
     3 'Normalizat'    .24558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0582       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=   1024.811     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      232 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.414        .90712E-02** at limit **
   2  Index         2.1042        8.0202        .50000        .18750E-05
   3  Normalizat    .24557        .88311E-02    .13103       -.18125E-04
   4  Prefactor     1.0582        .52998E-02    .39452E-01    .52283E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.10415
  Normalizat = 0.245575
  Prefactor  = 1.0582
 **********
 **   18 **HESSE 
 **********

 FCN=   1024.811     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    242.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1042        6.9615        .50000       -.61771    
   3  Normalizat    .24557        .21763E-01    .57923E-03   -1.2625    
   4  Prefactor     1.0582        .13063E-01    .17130E-03   -.90814    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.64985e-09
Minuit parameter uncertainties:
  1  0.000942989
  2  175.912
  3  0.0217636
  4  0.0130626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143964': 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) = 1024.81114198
delta logL = -4.63205651613e-08

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  9.430e-04  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.104e+00  1.759e+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:  1.058e+00  1.306e-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:  2.456e-01  2.176e-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/143964/cmap_HighResolution_659232001_659491201_4FGL_J0159.0+3313_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-02', job_status='DONE', photon_flux_upper_limit='4.02e-07', time_completed='2021-12-07 12:33:41.173684', job_id='143964', GAL2='1.06', fit_tolerance='1e-08', EG2='0.25', EG='0.25', time_epoch_completed='1638909221.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-4.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1620' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:33:41 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 143964: <4FGL_J0159.0+3313_daily_bin1620> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1620> 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) <bullet0125>, 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:33:41 2021
Results reported at Tue Dec  7 12:33:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1620 29.7665 33.2175 659232001 659491201 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 :                                   405.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            791 sec.

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

