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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1321
RA = 29.8858, Dec = 10.7737
tmin = 581731201, tmax = 581990401
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='4697', job_status='RUN', time_executed='2021-08-15 00:59:00.800271', time_epoch_executed='1629014340.8' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4697/ft1_4FGL_J0159.5+1046_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4697/ft1_4FGL_J0159.5+1046_daily_bin1321.fits outfile=/scratch/kocevski/4697/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1321.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=581731201.0 tmax=581990401.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 4.48
user 2.36
sys 2.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.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/4697/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/4697/ft1_filtered_4FGL_J0159.5+1046_daily_bin1321.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 2.45
user 0.33
sys 2.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4697/ft1_filtered_4FGL_J0159.5+1046_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/4697/ltcube_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.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/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits
.....................!
real 18.12
user 15.55
sys 2.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4697/ft1_filtered_4FGL_J0159.5+1046_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/4697/ltcube_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.fits outfile=/scratch/kocevski/4697/expmap_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.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/4697/ltcube_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.fits
.....................!
real 196.57
user 188.48
sys 7.32

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/4697/ft1_filtered_4FGL_J0159.5+1046_daily_bin1321.fits scfile=/scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits outfile=/scratch/kocevski/4697/cmap_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.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 2.41
user 0.38
sys 2.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4697/ft1_filtered_4FGL_J0159.5+1046_daily_bin1321.fits scfile=/scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits outfile=/scratch/kocevski/4697/cmap_HighResolution_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.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 2.41
user 0.38
sys 2.01

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4697/ft1_filtered_4FGL_J0159.5+1046_daily_bin1321.fits', '/scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits', expMap='/scratch/kocevski/4697/expmap_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.fits', expCube='/scratch/kocevski/4697/ltcube_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4697/Model_4FGL_J0159.5+1046_daily_bin1321.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/4697/ft1_filtered_4FGL_J0159.5+1046_daily_bin1321.fits
Spacecraft file(s): /scratch/kocevski/4697/ft2_4FGL_J0159.5+1046_daily_bin1321.fits
Exposure map: /scratch/kocevski/4697/expmap_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.fits
Exposure cube: /scratch/kocevski/4697/ltcube_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4697/Model_4FGL_J0159.5+1046_daily_bin1321.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) = 4683.80028963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4977       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0759       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2820       1.0000         .10000E-03   10000.    
     5 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6623       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.0282       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1780       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9529       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18543E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4315       1.0000         .10000E-03   10000.    
    14 'Prefactor '    94.278       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9921       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.226       1.0000         .10000E-03   10000.    
    22 'norm      '    28.260       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2352       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82050       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.

 FCN=   4683.795     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2983 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4970        13.134        .28490E-06    .42925E-05
   2  Prefactor     2.1049        98.873        .78525E-05    .56693E-04
   3  Prefactor     8.2234        12.827        .16939E-05   -.40133E-04
   4  Prefactor     7.2809        5.9802        .12252E-06    .21339E-04
   5  norm          .10000E-03    6.2995        .10007E-07** at limit **
   6  Prefactor     4.6631        7.5615        .22732E-06    .21476E-04
   7  Prefactor     .10004E-03    2.1682       -.72162E-06** at limit **
   8  norm          9.0272        6.0621       -.85870E-07   -.52327E-05
   9  Prefactor     1.1803        2.9259        .45331E-06   -.27621E-04
  10  norm          2.9527        1.3313        .18876E-07   -.20409E-04
  11  Prefactor     43.554        41.155        .11851E-05    .99569E-04
  12  Prefactor     .10000E-03    88.231       -.11383E-05** at limit **
  13  Prefactor     9.4313        10.212        .11137E-05   -.38605E-04
  14  Prefactor     94.262        85.491       -.22615E-05   -.84364E-04
  15  Prefactor     .10000E-03    8.7820        .27231E-08** at limit **
  16  Prefactor     .10000E-03    16.372        .15573E-05** at limit **
  17  Prefactor     3.9929        9.1586        .54989E-05   -.16663E-03
  18  Prefactor     .10000E-03    8.0039       -.10966E-06** at limit **
  19  norm          .10000E-03    .35529       -.83848E-09** at limit **
  20  Prefactor     .10001E-03    23.119       -.38167E-05** at limit **
  21  Prefactor     35.201        42.407       -.30374E-05   -.21887E-03
  22  norm          28.256        21.403       -.45570E-06   -.11633E-04
  23  Prefactor     .10000E-03    30.800        .33205E-05** at limit **
  24  Normalizat    1.2354        .23255        .43891E-08    .77646E-04
  25  Prefactor     .82035        .14568       -.76228E-06    .15998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.49701
  Prefactor  = 2.10487
  Prefactor  = 8.22337
  Prefactor  = 7.28092
  norm       = 0.0001
  Prefactor  = 4.66305
  Prefactor  = 0.000100039
  norm       = 9.02722
  Prefactor  = 1.18027
  norm       = 2.95267
  Prefactor  = 43.5536
  Prefactor  = 0.0001
  Prefactor  = 9.43135
  Prefactor  = 94.2616
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.99288
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 35.2015
  norm       = 28.2557
  Prefactor  = 0.000100004
  Normalizat = 1.23544
  Prefactor  = 0.820351
 **********
 **   18 **HESSE 
 **********

 FCN=   4683.795     FROM HESSE     STATUS=OK           427 CALLS     3410 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4970        13.136        .14646E-03   -1.5160    
   2  Prefactor     2.1049        100.43        .28666E-03   -1.5418    
   3  Prefactor     8.2234        12.853        .69902E-03   -1.5134    
   4  Prefactor     7.2809        5.9839        .14613E-03   -1.5168    
   5  norm          .10000E-03    6.3010        .16777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6631        7.5510        .18638E-03   -1.5276    
   7  Prefactor     .10004E-03    12.583        .18901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.0272        6.0526        .13285E-03   -1.5107    
   9  Prefactor     1.1803        2.8506        .17155E-03   -1.5491    
  10  norm          2.9527        1.3326        .50996E-04   -1.5364    
  11  Prefactor     43.554        41.118        .60756E-04   -1.4387    
  12  Prefactor     .10000E-03    88.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4313        10.214        .65247E-03   -1.5094    
  14  Prefactor     94.262        85.751        .20696E-03   -1.3763    
  15  Prefactor     .10000E-03    8.8143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9929        9.3437        .10093E-02   -1.5308    
  18  Prefactor     .10000E-03    8.0222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .36881        .79624E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    23.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.201        43.209        .67521E-04   -1.4521    
  22  norm          28.256        21.419        .75363E-04   -1.4644    
  23  Prefactor     .10000E-03    31.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2354        .26689        .28040E-03   -.85515    
  25  Prefactor     .82035        .16703        .21328E-03   -.98982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04391e-09
Minuit parameter uncertainties:
  1  13.1414
  2  29.1301
  3  12.8573
  4  5.98434
  5  7.41379e-07
  6  7.55259
  7  0.00139476
  8  6.05296
  9  2.85097
  10  1.33265
  11  41.1449
  12  0.000371656
  13  10.2159
  14  85.8639
  15  8.88891e-07
  16  0.00028695
  17  9.34707
  18  1.05481e-05
  19  1.75338e-07
  20  0.000715915
  21  43.2472
  22  21.4247
  23  0.000719691
  24  0.267186
  25  0.167129
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  4.663e+00  7.553e+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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.204e-01  1.671e-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.235e+00  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4697/likelihoodResults_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4683.79122306
delta logL = 0.00380746274459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4683.79017357
delta logL = 0.0048569611572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3149       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0903       1.0000          .0000       10.000    
     3 'Normalizat'    1.2329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82100       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=   4683.790     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      255 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3141        8.5221        .19393E-03    .11652E-02
   2  Index         2.0903        1.0383        .10111E-01    .24891E-03
   3  Normalizat    1.2329        .25861        .28065E-03   -.21385E-03
   4  Prefactor     .82099        .16445        .21320E-03   -.43962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31407
  Index      = 2.09035
  Normalizat = 1.23286
  Prefactor  = 0.82099
 **********
 **   18 **HESSE 
 **********

 FCN=   4683.790     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3141        8.0269        .77573E-05   -1.5293    
   2  Index         2.0903        .97854        .40444E-03   -.62110    
   3  Normalizat    1.2329        .25837        .56129E-04   -.85593    
   4  Prefactor     .82099        .16442        .42639E-04   -.98959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15712e-09
Minuit parameter uncertainties:
  1  8.02888
  2  0.988243
  3  0.258639
  4  0.164523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4697': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4683.79017356
delta logL = 0.00485696845499

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  4.314e+00  8.029e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.090e+00  9.882e-01  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:  8.210e-01  1.645e-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.233e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/4697/cmap_HighResolution_581731201_581990401_4FGL_J0159.5+1046_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-08-15 01:09:55.692080', job_id='4697', GAL2='0.82', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1629014995.69', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.86e-03', ts2='0.57', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1321' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 01:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 4697: <4FGL_J0159.5+1046_daily_bin1321> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1321> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 00:55:19 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:56:23 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:56:23 2021
Terminated at Sun Aug 15 01:09:56 2021
Results reported at Sun Aug 15 01:09:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1321 29.8858 10.7737 581731201 581990401 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 :                                   679.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            877 sec.

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

